Mercurial > gemma
annotate schema/updates/1431/01.prevent_equal_fairway_areas.sql @ 5736:55892008ec96 default tip
Fixed a bunch of corner cases in WG import.
author | Sascha Wilde <wilde@sha-bang.de> |
---|---|
date | Wed, 29 May 2024 19:02:42 +0200 |
parents | e21cbb9768a2 |
children |
rev | line source |
---|---|
5095
e21cbb9768a2
Prevent duplicate fairway areas
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
1 CREATE CONSTRAINT TRIGGER fairway_dimensions_area_unique |
e21cbb9768a2
Prevent duplicate fairway areas
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
2 AFTER INSERT OR UPDATE OF area, staging_done |
e21cbb9768a2
Prevent duplicate fairway areas
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
3 ON waterway.fairway_dimensions |
e21cbb9768a2
Prevent duplicate fairway areas
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
4 FOR EACH ROW EXECUTE FUNCTION prevent_st_equals('area', 'staging_done'); |