[Dive4elements-commits] [PATCH 2 of 2] Add building_kinds to drop script and fix syntax of buildings table

Wald Commits scm-commit at wald.intevation.org
Mon Mar 25 17:01:20 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1364227267 -3600
# Node ID 91f5908c472af836a3f5b8209febb320f38b5e99
# Parent  db5def5456cebed0c243d84197a27afaaa8819f1
Add building_kinds to drop script and fix syntax of buildings table

diff -r db5def5456ce -r 91f5908c472a flys-backend/doc/schema/oracle-drop-spatial.sql
--- a/flys-backend/doc/schema/oracle-drop-spatial.sql	Mon Mar 25 17:00:37 2013 +0100
+++ b/flys-backend/doc/schema/oracle-drop-spatial.sql	Mon Mar 25 17:01:07 2013 +0100
@@ -75,3 +75,4 @@
 DROP TABLE boundary_kinds;
 DROP TABLE cross_section_track_kinds;
 DROP TABLE floodplain_kinds;
+DROP TABLE building_kinds;
diff -r db5def5456ce -r 91f5908c472a flys-backend/doc/schema/oracle-spatial.sql
--- a/flys-backend/doc/schema/oracle-spatial.sql	Mon Mar 25 17:00:37 2013 +0100
+++ b/flys-backend/doc/schema/oracle-spatial.sql	Mon Mar 25 17:01:07 2013 +0100
@@ -92,8 +92,8 @@
     OGR_FID NUMBER(38),
     GEOM MDSYS.SDO_GEOMETRY,
     river_id NUMBER(38) REFERENCES rivers(id) ON DELETE CASCADE,
-    kind_id NUMBER(38) REFERENCES building_kinds(id) NOT NULL DEFAULT 0,
-    km NUMBER(38,11) NOT NULL,
+    kind_id NUMBER(38) DEFAULT 0 NOT NULL REFERENCES building_kinds(id),
+    km NUMBER(38,11),
     name VARCHAR2(255), -- The layername
     description VARCHAR(256), -- Name taken from attributes
     path     VARCHAR(256),
diff -r db5def5456ce -r 91f5908c472a flys-backend/doc/schema/postgresql-drop-spatial.sql
--- a/flys-backend/doc/schema/postgresql-drop-spatial.sql	Mon Mar 25 17:00:37 2013 +0100
+++ b/flys-backend/doc/schema/postgresql-drop-spatial.sql	Mon Mar 25 17:01:07 2013 +0100
@@ -45,5 +45,6 @@
 DROP TABLE sectie_kinds;
 DROP TABLE boundary_kinds;
 DROP TABLE axis_kinds;
+DROP TABLE building_kinds;
 
 COMMIT;


More information about the Dive4elements-commits mailing list