Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
5882:7100059790df | 5883:4f35b34f4efa |
---|---|
94 description VARCHAR2(255) NOT NULL, | 94 description VARCHAR2(255) NOT NULL, |
95 bfg_id VARCHAR2(50), | 95 bfg_id VARCHAR2(50), |
96 kind NUMBER(38,0) NOT NULL DEFAULT 0, | 96 kind NUMBER(38,0) NOT NULL DEFAULT 0, |
97 gauge_id NUMBER(38,0) NOT NULL, | 97 gauge_id NUMBER(38,0) NOT NULL, |
98 time_interval_id NUMBER(38,0), | 98 time_interval_id NUMBER(38,0), |
99 PRIMARY KEY (id) | 99 PRIMARY KEY (id), |
100 UNIQUE(gauge_id, time_interval_id, kind) | |
100 ); | 101 ); |
101 | 102 |
102 | 103 |
103 -- EDGES | 104 -- EDGES |
104 CREATE SEQUENCE EDGES_ID_SEQ; | 105 CREATE SEQUENCE EDGES_ID_SEQ; |