From f4b2c729c9dfa564bbfd6ec81b20591e7431c7ed Mon Sep 17 00:00:00 2001 From: CynthiaBorotPNV <31919455+CynthiaBorotPNV@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:52:09 +0200 Subject: [PATCH] Update synthese.sql adding "public" schema reference Without the public key I meet errors using fdw (foreign data wrapper) when I want to insert data in gn_synthese.synthese table --- backend/geonature/migrations/data/core/synthese.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/geonature/migrations/data/core/synthese.sql b/backend/geonature/migrations/data/core/synthese.sql index 6c5fc09242..b583aaa882 100644 --- a/backend/geonature/migrations/data/core/synthese.sql +++ b/backend/geonature/migrations/data/core/synthese.sql @@ -556,7 +556,7 @@ $BODY$ FROM NEW as updated_rows JOIN ref_geo.l_areas a ON public.ST_INTERSECTS(updated_rows.the_geom_local, a.geom) - WHERE a.enable IS TRUE AND (ST_GeometryType(updated_rows.the_geom_local) = 'ST_Point' OR NOT public.ST_TOUCHES(updated_rows.the_geom_local,a.geom)); + WHERE a.enable IS TRUE AND (public.ST_GeometryType(updated_rows.the_geom_local) = 'ST_Point' OR NOT public.ST_TOUCHES(updated_rows.the_geom_local,a.geom)); RETURN NULL; END; $BODY$ @@ -1256,4 +1256,4 @@ AS $BODY$ RETURN TRUE; END; - $BODY$; \ No newline at end of file + $BODY$;