[Lada-commits] [PATCH 01 of 12] Removed duplicated netzbetreiber column. (mst_id already contains the

Wald Commits scm-commit at wald.intevation.org
Mon Jul 4 12:09:07 CEST 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1467615133 -7200
# Branch schema-update
# Node ID 599bd9462e623bfa23709f25d31527cde60423a3
# Parent  e9116ec4eb4025a247dc7b6354a7b4033e44882c
Removed duplicated netzbetreiber column. (mst_id already contains the
netzbetreiber)

diff -r e9116ec4eb40 -r 599bd9462e62 db_schema/lada_schema.sql
--- a/db_schema/lada_schema.sql	Fri Jul 01 19:53:56 2016 +0200
+++ b/db_schema/lada_schema.sql	Mon Jul 04 08:52:13 2016 +0200
@@ -116,11 +116,8 @@
     id serial PRIMARY KEY,
     name character varying(256),
     test boolean DEFAULT false NOT NULL,
-    netzbetreiber_id character varying(2) NOT NULL
-        REFERENCES stammdaten.netz_betreiber,
     mst_id character varying(5) NOT NULL REFERENCES stammdaten.mess_stelle,
-    labor_mst_id character varying(5) NOT NULL
-        REFERENCES stammdaten.mess_stelle,
+    labor_mst_id character varying(5) NOT NULL REFERENCES stammdaten.mess_stelle,
     datenbasis_id integer NOT NULL REFERENCES stammdaten.datenbasis,
     ba_id character varying(1),
     gem_id character varying(8),
@@ -163,11 +160,8 @@
     id serial PRIMARY KEY,
     id_alt character varying(20) DEFAULT (('sss'::text || lpad(((nextval('land.probe_probe_id_seq'::regclass))::character varying)::text, 12, '0'::text)) || 'Y'::text) NOT NULL,
     test boolean DEFAULT false NOT NULL,
-    netzbetreiber_id character varying(2) REFERENCES stammdaten.netz_betreiber,
-    mst_id character varying(5) NOT NULL
-        REFERENCES stammdaten.mess_stelle,
-    labor_mst_id character varying(5) NOT NULL
-        REFERENCES stammdaten.mess_stelle,
+    mst_id character varying(5) NOT NULL REFERENCES stammdaten.mess_stelle,
+    labor_mst_id character varying(5) NOT NULL REFERENCES stammdaten.mess_stelle,
     hauptproben_nr character varying(20),
     datenbasis_id smallint REFERENCES stammdaten.datenbasis,
     ba_id character varying(1),


More information about the Lada-commits mailing list