comparison backend/doc/schema/postgresql-minfo.sql @ 6369:7fb0e755e4fa double-precision

Minimal schema change: allow longer names in discharge zones
author Tom Gottfried <tom.gottfried@intevation.de>
date Tue, 18 Jun 2013 19:32:31 +0200
parents 2d16f4a0bdcc
children c14e17dabf39
comparison
equal deleted inserted replaced
6366:cc21c197d204 6369:7fb0e755e4fa
177 CREATE TABLE discharge_zone ( 177 CREATE TABLE discharge_zone (
178 id int NOT NULL, 178 id int NOT NULL,
179 river_id int NOT NULL, 179 river_id int NOT NULL,
180 gauge_name VARCHAR(64) NOT NULL, -- this is not very proper, but there are gauges with no db instance 180 gauge_name VARCHAR(64) NOT NULL, -- this is not very proper, but there are gauges with no db instance
181 value NUMERIC NOT NULL, 181 value NUMERIC NOT NULL,
182 lower_discharge VARCHAR(16) NOT NULL, 182 lower_discharge VARCHAR(64) NOT NULL,
183 upper_discharge VARCHAR(16), 183 upper_discharge VARCHAR(64),
184 PRIMARY KEY(id), 184 PRIMARY KEY(id),
185 CONSTRAINT fk_dz_river_id FOREIGN KEY (river_id) REFERENCES rivers(id) ON DELETE CASCADE 185 CONSTRAINT fk_dz_river_id FOREIGN KEY (river_id) REFERENCES rivers(id) ON DELETE CASCADE
186 ); 186 );
187 187
188 188

http://dive4elements.wald.intevation.org