From bbf29f0f4450a1324e30138bf0938834574820cd Mon Sep 17 00:00:00 2001 From: Matthias Wirtz Date: Sun, 29 Sep 2024 07:58:57 +0200 Subject: [PATCH] Update 20191008191431_fix_ll_to_earth.exs https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=2af07e2f7 --- priv/repo/migrations/20191008191431_fix_ll_to_earth.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/priv/repo/migrations/20191008191431_fix_ll_to_earth.exs b/priv/repo/migrations/20191008191431_fix_ll_to_earth.exs index 94a22df06b1..212a6f31471 100644 --- a/priv/repo/migrations/20191008191431_fix_ll_to_earth.exs +++ b/priv/repo/migrations/20191008191431_fix_ll_to_earth.exs @@ -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