comparison flys-backend/doc/schema/postgresql.sql @ 2373:056b3a5aa181

Removed "NOT NULL" constraint from gauges.range_id because there are gauges which dont have a Gueltigkeitsbereich. flys-backend/trunk@3564 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 02 Jan 2012 13:42:27 +0000
parents fe89d6cf55fb
children c3e049961685
comparison
equal deleted inserted replaced
2372:027736510a30 2373:056b3a5aa181
86 official_number int8 UNIQUE, 86 official_number int8 UNIQUE,
87 87
88 -- Pegelnullpunkt 88 -- Pegelnullpunkt
89 datum NUMERIC NOT NULL, 89 datum NUMERIC NOT NULL,
90 -- Streckengueltigkeit 90 -- Streckengueltigkeit
91 range_id int NOT NULL REFERENCES ranges (id), 91 range_id int REFERENCES ranges (id),
92 92
93 UNIQUE (name, river_id), 93 UNIQUE (name, river_id),
94 UNIQUE (river_id, station) 94 UNIQUE (river_id, station)
95 ); 95 );
96 96

http://dive4elements.wald.intevation.org