diff backend/doc/schema/postgresql-minfo.sql @ 6045:2d16f4a0bdcc

Schema change: there is only one bed height per station at a given point in time
author Tom Gottfried <tom@intevation.de>
date Thu, 16 May 2013 18:03:39 +0200
parents 62e6598a2c4b
children 7fb0e755e4fa df402b3e0281
line wrap: on
line diff
--- a/backend/doc/schema/postgresql-minfo.sql	Thu May 16 16:14:28 2013 +0200
+++ b/backend/doc/schema/postgresql-minfo.sql	Thu May 16 18:03:39 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