[Dive4elements-commits] [PATCH 2 of 2] Oracle Schema, add overlooked sectie and sobek fields
Wald Commits
scm-commit at wald.intevation.org
Thu Feb 21 12:36:35 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1361446590 -3600
# Branch dami
# Node ID 0fd7720e5c7f03873905be297c6b261195237c30
# Parent c5187ab9f571a69fb051256b4e45387b69534ebe
Oracle Schema, add overlooked sectie and sobek fields
diff -r c5187ab9f571 -r 0fd7720e5c7f flys-backend/doc/schema/oracle-spatial-migrate-dami.sql
--- a/flys-backend/doc/schema/oracle-spatial-migrate-dami.sql Thu Feb 21 09:46:40 2013 +0100
+++ b/flys-backend/doc/schema/oracle-spatial-migrate-dami.sql Thu Feb 21 12:36:30 2013 +0100
@@ -112,9 +112,10 @@
);
-- Altrications
-ALTER TABLE dem ADD COLUMN srid NUMBER NOT NULL;
-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 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 COLUMN kind INT REFERENCES boundary_kinds(id);
+ALTER TABLE dem ADD srid NUMBER NOT NULL;
+ALTER TABLE hydr_boundaries_poly ADD sectie NUMBER REFERENCES sectie_kinds(id);
+ALTER TABLE hydr_boundaries_poly ADD sobek NUMBER REFERENCES sobek_kinds(id);
+ALTER TABLE hydr_boundaries ADD sectie NUMBER REFERENCES sectie_kinds(id);
+ALTER TABLE hydr_boundaries ADD sobek NUMBER REFERENCES sobek_kinds(id);
+ALTER TABLE hydr_boundaries ADD kind NUMBER REFERENCES boundary_kinds(id);
+ALTER TABLE hydr_boundaries_poly ADD kind NUMBER REFERENCES boundary_kinds(id);
diff -r c5187ab9f571 -r 0fd7720e5c7f flys-backend/doc/schema/oracle-spatial.sql
--- a/flys-backend/doc/schema/oracle-spatial.sql Thu Feb 21 09:46:40 2013 +0100
+++ b/flys-backend/doc/schema/oracle-spatial.sql Thu Feb 21 12:36:30 2013 +0100
@@ -294,7 +294,9 @@
GEOM MDSYS.SDO_GEOMETRY,
river_id NUMBER(38) REFERENCES rivers(id) ON DELETE CASCADE,
name VARCHAR(255),
- kind NUMBER(38),
+ kind NUMBER(38) REFERENCES boundary_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
);
@@ -311,7 +313,9 @@
GEOM MDSYS.SDO_GEOMETRY,
river_id NUMBER(38) REFERENCES rivers(id) ON DELETE CASCADE,
name VARCHAR(255),
- kind NUMBER(38),
+ kind NUMBER(38) REFERENCES boundary_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
);
More information about the Dive4elements-commits
mailing list