Mercurial > lada > lada-server
changeset 1168:cd9bf2430eef
Let the database enforce,too, what rev 46db98d060ae introduced.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 09 Nov 2016 17:24:49 +0100 |
parents | 7d3adb0834f5 |
children | 7c510615a4e8 |
files | db_schema/lada_schema.sql |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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();