comparison flys-backend/doc/schema/oracle-minfo.sql @ 2816:70b4a31a3306

Implemented the method stubs of the parser for sediment density and made some db schema adaptions. flys-backend/trunk@4233 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 13 Apr 2012 10:59:15 +0000
parents a36a5407acbf
children 8979f2294af9
comparison
equal deleted inserted replaced
2815:3febaed762b8 2816:70b4a31a3306
120 120
121 CREATE TABLE sediment_density ( 121 CREATE TABLE sediment_density (
122 id NUMBER(38,0) NOT NULL, 122 id NUMBER(38,0) NOT NULL,
123 river_id NUMBER(38,0) NOT NULL, 123 river_id NUMBER(38,0) NOT NULL,
124 depth_id NUMBER(38,0) NOT NULL, 124 depth_id NUMBER(38,0) NOT NULL,
125 unit_id NUMBER(38,0) NOT NULL,
125 PRIMARY KEY(id), 126 PRIMARY KEY(id),
126 CONSTRAINT fk_sd_river_id FOREIGN KEY (river_id) REFERENCES rivers(id), 127 CONSTRAINT fk_sd_river_id FOREIGN KEY (river_id) REFERENCES rivers(id),
127 CONSTRAINT fk_sd_depth_id FOREIGN KEY (depth_id) REFERENCES depths(id) 128 CONSTRAINT fk_sd_depth_id FOREIGN KEY (depth_id) REFERENCES depths(id),
129 CONSTRAINT fk_sd_unit_id FOREIGN KEY (unit_id) REFERENCES units(id)
128 ); 130 );
129 131
130 132
131 CREATE SEQUENCE SEDIMENT_DENSITY_VALUES_ID_SEQ; 133 CREATE SEQUENCE SEDIMENT_DENSITY_VALUES_ID_SEQ;
132 134
133 CREATE TABLE sediment_density_values ( 135 CREATE TABLE sediment_density_values (
134 id NUMBER(38,0) NOT NULL, 136 id NUMBER(38,0) NOT NULL,
135 sediment_density_id NUMBER(38,0) NOT NULL, 137 sediment_density_id NUMBER(38,0) NOT NULL,
136 station_id NUMBER(38,0) NOT NULL, 138 station NUMBER(38,2) NOT NULL,
137 density NUMBER(38,2) NOT NULL, 139 density NUMBER(38,2) NOT NULL,
138 description VARCHAR(256), 140 description VARCHAR(256),
139 PRIMARY KEY(id), 141 PRIMARY KEY(id),
140 CONSTRAINT fk_sdv_sediment_density_id FOREIGN KEY(sediment_density_id) REFERENCES sediment_density(id), 142 CONSTRAINT fk_sdv_sediment_density_id FOREIGN KEY(sediment_density_id) REFERENCES sediment_density(id)
141 CONSTRAINT fk_sdv_station_id FOREIGN KEY (station_id) REFERENCES ranges(id)
142 ); 143 );

http://dive4elements.wald.intevation.org