diff backend/doc/schema/oracle.sql @ 5883:4f35b34f4efa

Schema change: add constraint to discharge tables
author Tom Gottfried <tom.gottfried@intevation.de>
date Tue, 30 Apr 2013 12:53:10 +0200
parents 5aa05a7a34b7
children c1abd48a03e2
line wrap: on
line diff
--- a/backend/doc/schema/oracle.sql	Tue Apr 30 11:14:58 2013 +0200
+++ b/backend/doc/schema/oracle.sql	Tue Apr 30 12:53:10 2013 +0200
@@ -96,7 +96,8 @@
     kind                NUMBER(38,0) NOT NULL DEFAULT 0,
     gauge_id            NUMBER(38,0) NOT NULL,
     time_interval_id    NUMBER(38,0),
-    PRIMARY KEY         (id)
+    PRIMARY KEY         (id),
+    UNIQUE(gauge_id, time_interval_id, kind)
 );
 
 

http://dive4elements.wald.intevation.org