comparison flys-backend/doc/schema/oracle-minfo.sql @ 2836:6b541d85c5cf

Added missing river_id column to sediment_yield relation. flys-backend/trunk@4268 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 18 Apr 2012 12:53:45 +0000
parents daba3f895eb3
children 71175502d868
comparison
equal deleted inserted replaced
2835:8649e4ed01ec 2836:6b541d85c5cf
253 253
254 CREATE SEQUENCE SEDIMENT_YIELD_ID_SEQ; 254 CREATE SEQUENCE SEDIMENT_YIELD_ID_SEQ;
255 255
256 CREATE TABLE sediment_yield ( 256 CREATE TABLE sediment_yield (
257 id NUMBER(38,0) NOT NULL, 257 id NUMBER(38,0) NOT NULL,
258 river_id NUMBER(38,0) NOT NULL,
258 grain_fraction_id NUMBER(38,0), 259 grain_fraction_id NUMBER(38,0),
259 unit_id NUMBER(38,0) NOT NULL, 260 unit_id NUMBER(38,0) NOT NULL,
260 time_interval_id NUMBER(38,0) NOT NULL, 261 time_interval_id NUMBER(38,0) NOT NULL,
261 PRIMARY KEY (id), 262 PRIMARY KEY (id),
263 CONSTRAINT fk_sy_river_id FOREIGN KEY (river_id) REFERENCES rivers(id),
262 CONSTRAINT fk_sy_grain_fraction_id FOREIGN KEY (grain_fraction_id) REFERENCES grain_fraction(id), 264 CONSTRAINT fk_sy_grain_fraction_id FOREIGN KEY (grain_fraction_id) REFERENCES grain_fraction(id),
263 CONSTRAINT fk_sy_unit_id FOREIGN KEY (unit_id) REFERENCES units(id), 265 CONSTRAINT fk_sy_unit_id FOREIGN KEY (unit_id) REFERENCES units(id),
264 CONSTRAINT fk_sy_time_interval_id FOREIGN KEY (time_interval_id) REFERENCES time_intervals(id) 266 CONSTRAINT fk_sy_time_interval_id FOREIGN KEY (time_interval_id) REFERENCES time_intervals(id)
265 ); 267 );
266 268

http://dive4elements.wald.intevation.org