[Dive4elements-commits] [PATCH] Schema change because WST-columns without time interval are useless

Wald Commits scm-commit at wald.intevation.org
Mon May 13 17:48:45 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1368460112 -7200
# Node ID 6ea171b6d8d2f1cddccc710a1e58d9a8a698caf6
# Parent  a45da06797c7c1354c519c064d713477d38ef2ab
Schema change because WST-columns without time interval are useless

diff -r a45da06797c7 -r 6ea171b6d8d2 backend/doc/schema/oracle.sql
--- a/backend/doc/schema/oracle.sql	Mon May 13 15:53:36 2013 +0200
+++ b/backend/doc/schema/oracle.sql	Mon May 13 17:48:32 2013 +0200
@@ -325,7 +325,7 @@
     description         VARCHAR2(255),
     name                VARCHAR2(255) NOT NULL,
     position            NUMBER(38,0) NOT NULL DEFAULT 0,
-    time_interval_id    NUMBER(38,0),
+    time_interval_id    NUMBER(38,0) NOT NULL,
     wst_id              NUMBER(38,0) NOT NULL,
     UNIQUE (wst_id, name),
     UNIQUE (wst_id, position),
diff -r a45da06797c7 -r 6ea171b6d8d2 backend/doc/schema/postgresql.sql
--- a/backend/doc/schema/postgresql.sql	Mon May 13 15:53:36 2013 +0200
+++ b/backend/doc/schema/postgresql.sql	Mon May 13 17:48:32 2013 +0200
@@ -203,7 +203,7 @@
     description VARCHAR(256),
     position    int NOT NULL DEFAULT 0,
 
-    time_interval_id int REFERENCES time_intervals(id),
+    time_interval_id int NOT NULL REFERENCES time_intervals(id),
 
     UNIQUE (wst_id, name),
     UNIQUE (wst_id, position)


More information about the Dive4elements-commits mailing list