[Lada-commits] [PATCH 06 of 10] Added FK to probe and messprogramm

Wald Commits scm-commit at wald.intevation.org
Fri Jul 8 15:35:37 CEST 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1467635466 -7200
# Branch schema-update
# Node ID d77178ccbcbc4d08422e5ad2371e7015b4586326
# Parent  8e5dcf7156c5821478c92752d7fab2c60a2df8d5
Added FK to probe and messprogramm.

diff -r 8e5dcf7156c5 -r d77178ccbcbc db_schema/lada_schema.sql
--- a/db_schema/lada_schema.sql	Mon Jul 04 14:30:40 2016 +0200
+++ b/db_schema/lada_schema.sql	Mon Jul 04 14:31:06 2016 +0200
@@ -119,7 +119,7 @@
     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),
+    ba_id integer REFERENCES stammdaten.betriebsart,
     gem_id character varying(8) REFERENCES stammdaten.verwaltungseinheit,
     ort_id integer NOT NULL REFERENCES stammdaten.ort,
     media_desk character varying(100),
@@ -164,7 +164,7 @@
     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),
+    ba_id integer REFERENCES stammdaten.betriebsart,
     probenart_id smallint NOT NULL REFERENCES stammdaten.probenart,
     media_desk character varying(100),
     media character varying(100),


More information about the Lada-commits mailing list