[Lada-commits] [PATCH 08 of 12] Fixed column names in constraints
Wald Commits
scm-commit at wald.intevation.org
Mon Jul 4 12:09:14 CEST 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1467625580 -7200
# Branch schema-update
# Node ID 48c07fc5d2d1035b60c9fe4f3277dc9c5e34a80b
# Parent c739d08040d6a969b5d571496f4b600f17a81238
Fixed column names in constraints.
diff -r c739d08040d6 -r 48c07fc5d2d1 db_schema/stammdaten_schema.sql
--- a/db_schema/stammdaten_schema.sql Mon Jul 04 11:31:31 2016 +0200
+++ b/db_schema/stammdaten_schema.sql Mon Jul 04 11:46:20 2016 +0200
@@ -478,7 +478,7 @@
code character varying(3) NOT NULL,
bezeichnung character varying(120) NOT NULL,
letzte_aenderung timestamp without time zone,
- UNIQUE(mpl_id, netzbetreiber_id)
+ UNIQUE(code, netzbetreiber_id)
);
CREATE TRIGGER letzte_aenderung_messprogramm_kategorie BEFORE UPDATE ON messprogramm_kategorie FOR EACH ROW EXECUTE PROCEDURE update_letzte_aenderung();
@@ -826,7 +826,7 @@
ALTER TABLE ONLY auth_lst_umw
- ADD CONSTRAINT auth_lst_umw_lst_fkey FOREIGN KEY (lst_id) REFERENCES mess_stelle(id);
+ ADD CONSTRAINT auth_lst_umw_lst_fkey FOREIGN KEY (mst_id) REFERENCES mess_stelle(id);
More information about the Lada-commits
mailing list