Skip to content

Commit b0f28d0

Browse files
xh3n1michield
authored andcommitted
change data field from blob to mediumblob (#375)
Signed-off-by: Xheni Myrtaj <[email protected]>
1 parent 14bb5d9 commit b0f28d0

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
@@ -249,7 +249,7 @@
249249
'id' => array('integer not null primary key auto_increment', 'ID'),
250250
'date' => array('datetime', 'Date received'),
251251
'header' => array('text', 'Header of bounce'),
252-
'data' => array('blob', 'The bounce'),
252+
'data' => array('mediumblob', 'The bounce'),
253253
'status' => array('varchar(255)', 'Status of this bounce'),
254254
'comment' => array('text', 'System Comment'),
255255
'index_1' => array('dateindex (date)', ''),

public_html/lists/admin/upgrade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ function output($message)
309309

310310
}
311311

312+
if (version_compare($dbversion, '3.3.4','<')) {
313+
Sql_Query("alter table {$GLOBALS['tables']['bounce']} modify data mediumblob ");
314+
}
315+
312316
//# longblobs are better at mixing character encoding. We don't know the encoding of anything we may want to store in cache
313317
//# before converting, it's quickest to clear the cache
314318
clearPageCache();

0 commit comments

Comments
 (0)