comparison 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
comparison
equal deleted inserted replaced
6030:d12f920bbf00 6045:2d16f4a0bdcc
90 uncertainty NUMERIC, 90 uncertainty NUMERIC,
91 data_gap NUMERIC, 91 data_gap NUMERIC,
92 sounding_width NUMERIC, 92 sounding_width NUMERIC,
93 width NUMERIC, 93 width NUMERIC,
94 PRIMARY KEY(id), 94 PRIMARY KEY(id),
95 UNIQUE (station, bed_height_single_id),
95 CONSTRAINT fk_bed_single_values_parent FOREIGN KEY (bed_height_single_id) REFERENCES bed_height_single(id) ON DELETE CASCADE 96 CONSTRAINT fk_bed_single_values_parent FOREIGN KEY (bed_height_single_id) REFERENCES bed_height_single(id) ON DELETE CASCADE
96 ); 97 );
97 98
98 99
99 CREATE SEQUENCE BED_EPOCH_VALUES_ID_SEQ; 100 CREATE SEQUENCE BED_EPOCH_VALUES_ID_SEQ;

http://dive4elements.wald.intevation.org