[Dive4elements-commits] [PATCH] Schema change: named_main_values.name is not unique, as we can have the same name for different types

Wald Commits scm-commit at wald.intevation.org
Tue May 7 18:20:00 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1367943597 -7200
# Node ID 4fafe8d147b2a815f7a57c030f2ddcb99d1693af
# Parent  1058b3436dadd20e9683eb11bbe3ed5b00b2d76b
Schema change: named_main_values.name is not unique, as we can have the same name for different types

diff -r 1058b3436dad -r 4fafe8d147b2 backend/doc/schema/oracle.sql
--- a/backend/doc/schema/oracle.sql	Tue May 07 17:32:33 2013 +0200
+++ b/backend/doc/schema/oracle.sql	Tue May 07 18:19:57 2013 +0200
@@ -226,7 +226,7 @@
 
 CREATE TABLE named_main_values (
     id                  NUMBER(38,0) NOT NULL,
-    name                VARCHAR2(256) NOT NULL UNIQUE,
+    name                VARCHAR2(256) NOT NULL,
     type_id             NUMBER(38,0) NOT NULL,
     PRIMARY KEY (id)
 );
diff -r 1058b3436dad -r 4fafe8d147b2 backend/doc/schema/postgresql.sql
--- a/backend/doc/schema/postgresql.sql	Tue May 07 17:32:33 2013 +0200
+++ b/backend/doc/schema/postgresql.sql	Tue May 07 18:19:57 2013 +0200
@@ -111,7 +111,7 @@
 
 CREATE TABLE named_main_values (
     id      int PRIMARY KEY NOT NULL,
-    name    VARCHAR(256)    NOT NULL UNIQUE,
+    name    VARCHAR(256)    NOT NULL,
     type_id int NOT NULL REFERENCES main_value_types(id)
 );
 


More information about the Dive4elements-commits mailing list