diff 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
line wrap: on
line diff
--- a/flys-backend/doc/schema/oracle-minfo.sql	Wed Apr 18 12:29:05 2012 +0000
+++ b/flys-backend/doc/schema/oracle-minfo.sql	Wed Apr 18 12:53:45 2012 +0000
@@ -255,10 +255,12 @@
 
 CREATE TABLE sediment_yield (
     id                  NUMBER(38,0) NOT NULL,
+    river_id            NUMBER(38,0) NOT NULL,
     grain_fraction_id   NUMBER(38,0),
     unit_id             NUMBER(38,0) NOT NULL,
     time_interval_id    NUMBER(38,0) NOT NULL,
     PRIMARY KEY (id),
+    CONSTRAINT fk_sy_river_id FOREIGN KEY (river_id) REFERENCES rivers(id),
     CONSTRAINT fk_sy_grain_fraction_id FOREIGN KEY (grain_fraction_id) REFERENCES grain_fraction(id),
     CONSTRAINT fk_sy_unit_id FOREIGN KEY (unit_id) REFERENCES units(id),
     CONSTRAINT fk_sy_time_interval_id FOREIGN KEY (time_interval_id) REFERENCES time_intervals(id)

http://dive4elements.wald.intevation.org