From 9bf0761ce5a37f3000d60279762f00bbd48ad168 Mon Sep 17 00:00:00 2001 From: jensp Date: Thu, 31 Oct 2013 21:06:45 +0000 Subject: [PATCH] Fixed a bug in the upgrade script for ccm-core version 6.5.2-6.5.3. This SQL command did not work: ALTER TABLE messages ADD large_body text NOT NULL; because this would add a column with null values if there are exitings rows. Changing the SQL command to ALTER TABLE messages ADD large_body text NOT NULL DEFAULT ' '; solved the problem. git-svn-id: https://svn.libreccm.org/ccm/trunk@2408 8810af33-2d31-482b-a856-94f89814c4df --- .../sql/ccm-core/upgrade/postgres/6.5.2-6.5.3/clob_message.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccm-core/sql/ccm-core/upgrade/postgres/6.5.2-6.5.3/clob_message.sql b/ccm-core/sql/ccm-core/upgrade/postgres/6.5.2-6.5.3/clob_message.sql index 872ee77a1..39de948ad 100755 --- a/ccm-core/sql/ccm-core/upgrade/postgres/6.5.2-6.5.3/clob_message.sql +++ b/ccm-core/sql/ccm-core/upgrade/postgres/6.5.2-6.5.3/clob_message.sql @@ -19,7 +19,7 @@ -alter table messages add large_body text NOT NULL; +alter table messages add large_body text NOT NULL DEFAULT ' '; update messages set large_body = body;