Mercurial > gemma
annotate schema/updates/1436/02.axis_no_intersecting_validity.sql @ 5454:b4216db975e3 uiimprovements
fix layout for contextbox content.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 14 Jul 2021 16:21:27 +0200 |
parents | 722b7c305319 |
children |
rev | line source |
---|---|
5141
722b7c305319
Prevent equal axis geometries with intersecting validity
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
1 DROP TRIGGER waterway_axis_wtwaxs_unique ON waterway.waterway_axis; |
722b7c305319
Prevent equal axis geometries with intersecting validity
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
2 |
722b7c305319
Prevent equal axis geometries with intersecting validity
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
3 CREATE CONSTRAINT TRIGGER waterway_axis_wtwaxs_unique |
722b7c305319
Prevent equal axis geometries with intersecting validity
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
4 AFTER INSERT OR UPDATE OF wtwaxs, validity ON waterway.waterway_axis |
722b7c305319
Prevent equal axis geometries with intersecting validity
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
5 DEFERRABLE INITIALLY DEFERRED |
722b7c305319
Prevent equal axis geometries with intersecting validity
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
6 FOR EACH ROW |
722b7c305319
Prevent equal axis geometries with intersecting validity
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
7 EXECUTE FUNCTION prevent_st_equals('wtwaxs', 'validity WITH &&'); |