Mercurial > dive4elements > river
diff flys-backend/doc/schema/oracle-spatial.sql @ 5777:e95427ed80e5
Merged
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 21 Apr 2013 10:46:59 +0200 |
parents | b5553164fabf |
children | 153456f84602 |
line wrap: on
line diff
--- a/flys-backend/doc/schema/oracle-spatial.sql Sun Apr 21 10:46:06 2013 +0200 +++ b/flys-backend/doc/schema/oracle-spatial.sql Sun Apr 21 10:46:59 2013 +0200 @@ -237,23 +237,23 @@ SELECT HWS_LINES_ID_SEQ.nextval INTO :new.id FROM dual; END; / --- HWS Points lookup tables + CREATE TABLE sectie_kinds ( id NUMBER PRIMARY KEY NOT NULL, name VARCHAR(64) NOT NULL ); -INSERT INTO sectie_kinds (id, name) VALUES (0, 'SECTIE Unbekannt'); -INSERT INTO sectie_kinds (id, name) VALUES (1, 'Flussschlauch'); -INSERT INTO sectie_kinds (id, name) VALUES (2, 'Uferbank'); -INSERT INTO sectie_kinds (id, name) VALUES (3, 'Überflutungsbereich'); +INSERT INTO sectie_kinds (id, name) VALUES (0, 'nicht berücksichtigt'); +INSERT INTO sectie_kinds (id, name) VALUES (1, 'Hauptgerinne'); +INSERT INTO sectie_kinds (id, name) VALUES (2, 'Uferbereich'); +INSERT INTO sectie_kinds (id, name) VALUES (3, 'Vorland'); CREATE TABLE sobek_kinds ( id NUMBER PRIMARY KEY NOT NULL, name VARCHAR(64) NOT NULL ); -INSERT INTO sobek_kinds (id, name) VALUES (0, 'SOBEK Unbekannt'); -INSERT INTO sobek_kinds (id, name) VALUES (1, 'Stromführend'); -INSERT INTO sobek_kinds (id, name) VALUES (2, 'Stromspeichernd'); +INSERT INTO sobek_kinds (id, name) VALUES (0, 'nicht berücksichtigt'); +INSERT INTO sobek_kinds (id, name) VALUES (1, 'durchströmt'); +INSERT INTO sobek_kinds (id, name) VALUES (2, 'nicht durchströmt'); CREATE TABLE boundary_kinds ( id NUMBER PRIMARY KEY NOT NULL, @@ -338,8 +338,8 @@ river_id NUMBER(38) REFERENCES rivers(id) ON DELETE CASCADE, name VARCHAR(255), kind NUMBER(38) DEFAULT 0 NOT NULL REFERENCES boundary_kinds(id), - sectie NUMBER(38) DEFAULT 0 NOT NULL REFERENCES sectie_kinds(id), - sobek NUMBER(38) DEFAULT 0 NOT NULL REFERENCES sobek_kinds(id), + sectie NUMBER(38) REFERENCES sectie_kinds(id), + sobek NUMBER(38) REFERENCES sobek_kinds(id), path VARCHAR(256), id NUMBER PRIMARY KEY NOT NULL ); @@ -357,8 +357,8 @@ river_id NUMBER(38) REFERENCES rivers(id) ON DELETE CASCADE, name VARCHAR(255), kind NUMBER(38) DEFAULT 0 NOT NULL REFERENCES boundary_kinds(id), - sectie NUMBER(38) DEFAULT 0 NOT NULL REFERENCES sectie_kinds(id), - sobek NUMBER(38) DEFAULT 0 NOT NULL REFERENCES sobek_kinds(id), + sectie NUMBER(38) REFERENCES sectie_kinds(id), + sobek NUMBER(38) REFERENCES sobek_kinds(id), path VARCHAR(256), id NUMBER PRIMARY KEY NOT NULL );