[Lada-commits] [PATCH] Let the database enforce, too, what rev 46db98d060ae introduced

Wald Commits scm-commit at wald.intevation.org
Wed Nov 9 17:26:37 CET 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1478708689 -3600
# Node ID cd9bf2430eef55508789b9445a3102d3d66e0593
# Parent  7d3adb0834f5f76499587e748b46160b807c09d3
Let the database enforce,too, what rev 46db98d060ae introduced.

diff -r 7d3adb0834f5 -r cd9bf2430eef db_schema/lada_schema.sql
--- a/db_schema/lada_schema.sql	Wed Nov 09 16:32:29 2016 +0100
+++ b/db_schema/lada_schema.sql	Wed Nov 09 17:24:49 2016 +0100
@@ -278,7 +278,8 @@
     ortszuordnung_typ character varying(1) REFERENCES stammdaten.ortszuordnung_typ,
     ortszusatztext character varying(100),
     letzte_aenderung timestamp without time zone DEFAULT now(),
-    tree_modified timestamp without time zone DEFAULT now()
+    tree_modified timestamp without time zone DEFAULT now(),
+    EXCLUDE (probe_id WITH =) WHERE (ortszuordnung_typ = 'E')
 );
 CREATE TRIGGER letzte_aenderung_ortszuordnung BEFORE UPDATE ON ortszuordnung FOR EACH ROW EXECUTE PROCEDURE update_letzte_aenderung();
 CREATE TRIGGER tree_modified_ortszuordnung BEFORE UPDATE ON ortszuordnung FOR EACH ROW EXECUTE PROCEDURE update_tree_modified();


More information about the Lada-commits mailing list