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-94f89814c4dfmaster
parent
00d4066e53
commit
9bf0761ce5
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue