changeset 6046:4493ef20d357

merged
author Tom Gottfried <tom@intevation.de>
date Thu, 16 May 2013 18:04:35 +0200
parents 2d16f4a0bdcc (diff) 477d2d18452e (current diff)
children 1bb4b51ff1e6
files
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/backend/doc/schema/oracle-minfo.sql	Thu May 16 17:58:16 2013 +0200
+++ b/backend/doc/schema/oracle-minfo.sql	Thu May 16 18:04:35 2013 +0200
@@ -92,6 +92,7 @@
     sounding_width          NUMBER(38,2),
     width                   NUMBER(38,2),
     PRIMARY KEY(id),
+    UNIQUE (station, bed_height_single_id),
     CONSTRAINT fk_bed_single_values_parent FOREIGN KEY (bed_height_single_id) REFERENCES bed_height_single(id) ON DELETE CASCADE
 );
 
--- a/backend/doc/schema/postgresql-minfo.sql	Thu May 16 17:58:16 2013 +0200
+++ b/backend/doc/schema/postgresql-minfo.sql	Thu May 16 18:04:35 2013 +0200
@@ -92,6 +92,7 @@
     sounding_width          NUMERIC,
     width                   NUMERIC,
     PRIMARY KEY(id),
+    UNIQUE (station, bed_height_single_id),
     CONSTRAINT fk_bed_single_values_parent FOREIGN KEY (bed_height_single_id) REFERENCES bed_height_single(id) ON DELETE CASCADE
 );
 

http://dive4elements.wald.intevation.org