Skip to content

Commit

Permalink
Update 20191008191431_fix_ll_to_earth.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
swiffer committed Sep 29, 2024
1 parent 01fc100 commit bbf29f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion priv/repo/migrations/20191008191431_fix_ll_to_earth.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ defmodule TeslaMate.Repo.Migrations.FixLlToEarth do
LANGUAGE SQL
IMMUTABLE STRICT
PARALLEL SAFE
AS 'SELECT public.cube(public.cube(public.cube(public.earth()*cos(radians($1))*cos(radians($2))),public.earth()*cos(radians($1))*sin(radians($2))),public.earth()*sin(radians($1)))::public.earth';
AS 'SELECT public.cube(public.cube(public.cube(public.earth()*cos(radians($1))*cos(radians($2))),public.earth()*cos(radians($1))*sin(radians($2))),public.earth()*sin(radians($1)))::public.earth'
SET search_path = 'public';
""")
end

Expand Down

0 comments on commit bbf29f0

Please sign in to comment.