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
master
jensp 2013-10-31 21:06:45 +00:00
parent 00d4066e53
commit 9bf0761ce5
1 changed files with 1 additions and 1 deletions

View File

@ -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;