Mercurial > gemma
view schema/updates/1425/01.inline_utm_covers.sql @ 5677:a57be8bfb6ea sr-v2
More suited file names.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 11 Feb 2024 09:51:21 +0100 |
parents | 388947a3050d |
children |
line wrap: on
line source
ALTER POLICY responsibility_area ON waterway.bottlenecks USING (staging_done OR (SELECT ST_Covers(a, ST_Transform(CAST(area AS geometry), ST_SRID(a))) FROM users.current_user_area_utm() AS a (a))) WITH CHECK ((SELECT ST_Covers(a, ST_Transform(CAST(area AS geometry), ST_SRID(a))) FROM users.current_user_area_utm() AS a (a))); ALTER POLICY responsibility_area ON waterway.sounding_results USING (staging_done OR (SELECT ST_Covers(a, ST_Transform(CAST(area AS geometry), ST_SRID(a))) FROM users.current_user_area_utm() AS a (a))) WITH CHECK ((SELECT ST_Covers(a, ST_Transform(CAST(area AS geometry), ST_SRID(a))) FROM users.current_user_area_utm() AS a (a))); ALTER POLICY responsibility_area ON waterway.fairway_dimensions USING (staging_done OR (SELECT ST_Covers(a, ST_Transform(CAST(area AS geometry), ST_SRID(a))) FROM users.current_user_area_utm() AS a (a))) WITH CHECK ((SELECT ST_Covers(a, ST_Transform(CAST(area AS geometry), ST_SRID(a))) FROM users.current_user_area_utm() AS a (a))); ALTER POLICY responsibility_area_insert ON waterway.waterway_axis WITH CHECK ((SELECT ST_Covers(a, ST_Transform(CAST(wtwaxs AS geometry), ST_SRID(a))) FROM users.current_user_area_utm() AS a (a))); ALTER POLICY responsibility_area_update ON waterway.waterway_axis USING ((SELECT ST_Covers(a, ST_Transform(CAST(wtwaxs AS geometry), ST_SRID(a))) FROM users.current_user_area_utm() AS a (a))); ALTER POLICY responsibility_area_delete ON waterway.waterway_axis USING ((SELECT ST_Covers(a, ST_Transform(CAST(wtwaxs AS geometry), ST_SRID(a))) FROM users.current_user_area_utm() AS a (a))); DROP FUNCTION users.utm_covers;