diff flys-backend/doc/schema/oracle-minfo.sql @ 2849:c36106f15ac9

Added missing constraint to relation 'waterlevel_difference'. flys-backend/trunk@4303 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 26 Apr 2012 09:44:39 +0000
parents c1c6c9190636
children a2a33eff93aa
line wrap: on
line diff
--- a/flys-backend/doc/schema/oracle-minfo.sql	Wed Apr 25 06:47:53 2012 +0000
+++ b/flys-backend/doc/schema/oracle-minfo.sql	Thu Apr 26 09:44:39 2012 +0000
@@ -321,10 +321,11 @@
 CREATE TABLE waterlevel_difference (
     id          NUMBER(38,0) NOT NULL,
     river_id    NUMBER(38,0) NOT NULL,
-    unit        NUMBER(38,0) NOT NULL,
+    unit_id     NUMBER(38,0) NOT NULL,
     description VARCHAR(256),
     PRIMARY KEY (id),
-    CONSTRAINT fk_wd_river_id FOREIGN KEY (river_id) REFERENCES rivers (id)
+    CONSTRAINT fk_wd_river_id FOREIGN KEY (river_id) REFERENCES rivers (id),
+    CONSTRAINT fk_wd_unit_id FOREIGN KEY (unit_id) REFERENCES units(id)
 );
 
 

http://dive4elements.wald.intevation.org