Mercurial > dive4elements > river
diff flys-backend/doc/schema/postgresql-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/postgresql-spatial.sql Sun Apr 21 10:46:06 2013 +0200 +++ b/flys-backend/doc/schema/postgresql-spatial.sql Sun Apr 21 10:46:59 2013 +0200 @@ -250,18 +250,18 @@ id int 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 int 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 int PRIMARY KEY NOT NULL, @@ -278,8 +278,8 @@ river_id int REFERENCES rivers(id) ON DELETE CASCADE, name VARCHAR(255), kind int REFERENCES boundary_kinds(id) NOT NULL DEFAULT 0, - sectie int REFERENCES sectie_kinds(id) NOT NULL DEFAULT 0, - sobek int REFERENCES sobek_kinds(id) NOT NULL DEFAULT 0, + sectie int REFERENCES sectie_kinds(id), + sobek int REFERENCES sobek_kinds(id), path VARCHAR(256) ); SELECT AddGeometryColumn('hydr_boundaries','geom',31467,'MULTILINESTRING',3); @@ -292,8 +292,8 @@ river_id int REFERENCES rivers(id) ON DELETE CASCADE, name VARCHAR(255), kind int REFERENCES boundary_kinds(id) NOT NULL DEFAULT 0, - sectie int REFERENCES sectie_kinds(id) NOT NULL DEFAULT 0, - sobek int REFERENCES sobek_kinds(id) NOT NULL DEFAULT 0, + sectie int REFERENCES sectie_kinds(id), + sobek int REFERENCES sobek_kinds(id), path VARCHAR(256) ); SELECT AddGeometryColumn('hydr_boundaries_poly','geom',31467,'MULTIPOLYGON',3);