From 5d2a5e23cf9539d9735897a704761f29548d8a07 Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Fri, 16 Jul 2010 17:44:30 +0000 Subject: [PATCH] SAIL-294: Fixed PostgreSQL creation of table alf_prop_unique_ctx - The value1 column was declared as NOT NULL but nulls are allowed - Checked other versions of the script and upgrade scripts; they were fine. - Detected by unit test against PostgreSQL git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21250 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../AlfrescoCreate-PropertyValueTables.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-PropertyValueTables.sql b/config/alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-PropertyValueTables.sql index 357a968f64..4a5b786aad 100644 --- a/config/alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-PropertyValueTables.sql +++ b/config/alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-PropertyValueTables.sql @@ -110,7 +110,7 @@ CREATE TABLE alf_prop_unique_ctx value1_prop_id INT8 NOT NULL, value2_prop_id INT8 NOT NULL, value3_prop_id INT8 NOT NULL, - prop1_id INT8 NOT NULL, + prop1_id INT8 NULL, CONSTRAINT fk_alf_propuctx_v1 FOREIGN KEY (value1_prop_id) REFERENCES alf_prop_value (id) ON DELETE CASCADE, CONSTRAINT fk_alf_propuctx_v2 FOREIGN KEY (value2_prop_id) REFERENCES alf_prop_value (id) ON DELETE CASCADE, CONSTRAINT fk_alf_propuctx_v3 FOREIGN KEY (value3_prop_id) REFERENCES alf_prop_value (id) ON DELETE CASCADE,