[Dive4elements-commits] [PATCH 4 of 9] Add some missed changes to the migrate-dami.sql script
Wald Commits
scm-commit at wald.intevation.org
Wed Feb 20 18:31:17 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1361381405 -3600
# Branch dami
# Node ID df090e461c30bb551ff847700193df802be9a84f
# Parent be27a2bb7ca2fe0cba549dbb5f532eb2b7b8bf6c
Add some missed changes to the migrate-dami.sql script
diff -r be27a2bb7ca2 -r df090e461c30 flys-backend/doc/schema/postgresql-migrate-dami.sql
--- a/flys-backend/doc/schema/postgresql-migrate-dami.sql Wed Feb 20 18:29:46 2013 +0100
+++ b/flys-backend/doc/schema/postgresql-migrate-dami.sql Wed Feb 20 18:30:05 2013 +0100
@@ -1,5 +1,10 @@
DROP table hws;
DROP sequence HWS_ID_SEQ;
+DROP table lines;
+DROP sequence LINES_ID_SEQ;
+DROP table catchment;
+DROP sequence CATCHMENT_ID_SEQ;
+
-- Static lookup tables for Hochwasserschutzanlagen
CREATE TABLE hws_kinds (
id int PRIMARY KEY NOT NULL,
@@ -108,6 +113,7 @@
ALTER TABLE hydr_boundaries_poly ADD COLUMN sectie INT REFERENCES sectie_kinds(id);
ALTER TABLE hydr_boundaries_poly ADD COLUMN sobek INT REFERENCES sobek_kinds(id);
+ALTER TABLE hydr_boundaries_poly ADD FOREIGN KEY (kind) REFERENCES boundary_kinds(id);
ALTER TABLE hydr_boundaries ADD COLUMN sectie INT REFERENCES sectie_kinds(id);
ALTER TABLE hydr_boundaries ADD COLUMN sobek INT REFERENCES sobek_kinds(id);
ALTER TABLE hydr_boundaries ADD FOREIGN KEY (kind) REFERENCES boundary_kinds(id);
More information about the Dive4elements-commits
mailing list