# HG changeset patch # User Tom Gottfried # Date 1458755529 -3600 # Node ID 56c9fb1d37c8f1367b211286f3463965eeedbc7f # Parent 26d57ae6dd2f7c5482acce50699aef51b8aee3c4 probe and messprogramm always need a mst_id and labor_mst_id. Otherwise no owner can be determined. diff -r 26d57ae6dd2f -r 56c9fb1d37c8 db_schema/lada_schema.sql --- a/db_schema/lada_schema.sql Wed Mar 23 13:07:11 2016 +0100 +++ b/db_schema/lada_schema.sql Wed Mar 23 18:52:09 2016 +0100 @@ -364,8 +364,10 @@ id integer PRIMARY KEY DEFAULT nextval('probe_id_seq'::regclass), test boolean DEFAULT false NOT NULL, netzbetreiber_id character varying(2) REFERENCES stammdaten.netz_betreiber, - mst_id character varying(5) REFERENCES stammdaten.mess_stelle, - labor_mst_id character varying(5) 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), @@ -543,7 +545,8 @@ 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) 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),