File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments