[Dive4elements-commits] [PATCH 3 of 5] Fix syntax errors in oracle scheme

Wald Commits scm-commit at wald.intevation.org
Wed Apr 3 15:34:44 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1364995891 -7200
# Node ID 16afd4613f9dad14d2b040a63c105397b553c14c
# Parent  a11c6f680487ee200b45d963104f7dc1fc7778d7
Fix syntax errors in oracle scheme

diff -r a11c6f680487 -r 16afd4613f9d flys-backend/doc/schema/oracle-spatial.sql
--- a/flys-backend/doc/schema/oracle-spatial.sql	Wed Apr 03 15:31:04 2013 +0200
+++ b/flys-backend/doc/schema/oracle-spatial.sql	Wed Apr 03 15:31:31 2013 +0200
@@ -337,9 +337,9 @@
     GEOM MDSYS.SDO_GEOMETRY,
     river_id NUMBER(38) REFERENCES rivers(id) ON DELETE CASCADE,
     name VARCHAR(255),
-    kind   NUMBER(38) REFERENCES boundary_kinds(id) NOT NULL DEFAULT 0,
-    sectie NUMBER(38) REFERENCES sectie_kinds(id) NOT NULL DEFAULT 0,
-    sobek  NUMBER(38) REFERENCES sobek_kinds(id) NOT NULL DEFAULT 0,
+    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),
     path     VARCHAR(256),
     id NUMBER PRIMARY KEY NOT NULL
 );
@@ -356,9 +356,9 @@
     GEOM MDSYS.SDO_GEOMETRY,
     river_id NUMBER(38) REFERENCES rivers(id) ON DELETE CASCADE,
     name VARCHAR(255),
-    kind   NUMBER(38) REFERENCES boundary_kinds(id) NOT NULL DEFAULT 0,
-    sectie NUMBER(38) REFERENCES sectie_kinds(id) NOT NULL DEFAULT 0,
-    sobek  NUMBER(38) REFERENCES sobek_kinds(id) NOT NULL DEFAULT 0,
+    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),
     path     VARCHAR(256),
     id NUMBER PRIMARY KEY NOT NULL
 );


More information about the Dive4elements-commits mailing list