[Lada-commits] [PATCH] Fix CHECK-Constraint definition

Wald Commits scm-commit at wald.intevation.org
Fri Jul 1 10:33:15 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1467361964 -7200
# Node ID 5efb32a41b24c094274ad82bd3249a7ecdcc0fd6
# Parent  35878d9b432162e089161e65a5e0b3d9a70f01c0
Fix CHECK-Constraint definition.

diff -r 35878d9b4321 -r 5efb32a41b24 db_schema/stammdaten_schema.sql
--- a/db_schema/stammdaten_schema.sql	Wed Jun 29 19:23:50 2016 +0200
+++ b/db_schema/stammdaten_schema.sql	Fri Jul 01 10:32:44 2016 +0200
@@ -656,9 +656,9 @@
     header character varying(50) NOT NULL,
     width integer,
     flex boolean,
-    index integer
+    index integer,
+    UNIQUE (query_id, data_index)
 );
-ALTER TABLE result ADD CONSTRAINT data_index_query_id UNIQUE (query_id, data_index)
 
 ALTER SEQUENCE result_id_seq OWNED BY result.id;
 


More information about the Lada-commits mailing list