view schema/updates/1431/01.prevent_equal_fairway_areas.sql @ 5437:eeee1c411576 marking-single-beam

Pdf-Template: Use survey-date for {date-minor} when bottleneck survey is visible.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 13 Jul 2021 12:24:29 +0200
parents e21cbb9768a2
children
line wrap: on
line source

CREATE CONSTRAINT TRIGGER fairway_dimensions_area_unique
    AFTER INSERT OR UPDATE OF area, staging_done
    ON waterway.fairway_dimensions
    FOR EACH ROW EXECUTE FUNCTION prevent_st_equals('area', 'staging_done');