Skip to content

Commit af850ff

Browse files
authored
Set default of 0 for the processed column in the message table. (#847)
1 parent 454beb9 commit af850ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

public_html/lists/admin/upgrade.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,14 +441,18 @@ function output($message)
441441
Sql_Query("alter table {$GLOBALS['tables']['message']} change column processed processed integer ");
442442
}
443443

444+
if (version_compare($dbversion, '3.6.7', '<')) {
445+
Sql_Query("alter table {$GLOBALS['tables']['message']} alter column processed set default 0 ");
446+
}
447+
444448
if (!Sql_Table_Column_Exists($GLOBALS['tables']['template'], 'template_text')) {
445449
Sql_Query(sprintf('alter table %s add column template_text longblob after template',
446450
$GLOBALS['tables']['template']));
447451
//# no change in behavior for existing templates
448452
Sql_Query(sprintf('update %s set template_text="[CONTENT]"',
449453
$GLOBALS['tables']['template']));
450454
}
451-
455+
452456
//# longblobs are better at mixing character encoding. We don't know the encoding of anything we may want to store in cache
453457
//# before converting, it's quickest to clear the cache
454458
clearPageCache();

0 commit comments

Comments
 (0)