Mercurial > dive4elements > river
diff flys-backend/doc/schema/oracle-minfo.sql @ 5709:e89d922df8ae
Schema change: add constraint to have unique stations per flow velocity model
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 15 Apr 2013 16:04:22 +0200 |
parents | 88cbe798cbab |
children |
line wrap: on
line diff
--- a/flys-backend/doc/schema/oracle-minfo.sql Mon Apr 15 15:48:58 2013 +0200 +++ b/flys-backend/doc/schema/oracle-minfo.sql Mon Apr 15 16:04:22 2013 +0200 @@ -207,6 +207,7 @@ main_channel NUMBER(38,3) NOT NULL, shear_stress NUMBER(38,3) NOT NULL, PRIMARY KEY(id), + UNIQUE (station, flow_velocity_model_id), CONSTRAINT fk_fvv_flow_velocity_model_id FOREIGN KEY (flow_velocity_model_id) REFERENCES flow_velocity_model(id) ON DELETE CASCADE );