Skip to content

Commit ff53c6f

Browse files
michieldmarianaballa
authored andcommitted
increase the size of the processed column
1 parent 53e3eb1 commit ff53c6f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

public_html/lists/admin/structure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
'htmlformatted' => array('tinyint default 0', 'Is this message HTML formatted'),
140140
'sendformat' => array('varchar(20)', 'Format to send this message in'),
141141
'template' => array('integer', 'Template to use'),
142-
'processed' => array('mediumint unsigned default 0', 'Number Processed'),
142+
'processed' => array('integer unsigned default 0', 'Number Processed'),
143143
'astext' => array('integer default 0', 'Sent as text'),
144144
'ashtml' => array('integer default 0', 'Sent as HTML'),
145145
'astextandhtml' => array('integer default 0', 'Sent as Text and HTML'), // obsolete

public_html/lists/admin/upgrade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,10 @@ function output($message)
421421
SaveConfig('secret', bin2hex(random_bytes(20)));
422422
}
423423

424+
if (version_compare($dbversion, '3.6.0','<')) {
425+
Sql_Query("alter table {$GLOBALS['tables']['message']} change column processed processed integer ");
426+
}
427+
424428
//# longblobs are better at mixing character encoding. We don't know the encoding of anything we may want to store in cache
425429
//# before converting, it's quickest to clear the cache
426430
clearPageCache();

0 commit comments

Comments
 (0)