Convert the text cache to use a blob, so that there are no character set

issues:   see bug 5136
This commit is contained in:
moodler 2006-04-10 07:17:26 +00:00
parent 19407a4274
commit 71470b3bf1
3 changed files with 6 additions and 2 deletions

View File

@ -1771,6 +1771,10 @@ function main_upgrade($oldversion=0) {
table_column('blog_tag_instance','courseid','courseid','integer','10','unsigned','0','not null');
table_column('blog_tag_instance','userid','userid','integer','10','unsigned','0','not null');
}
if ($oldversion < 2006041001) {
table_column('cache_text','formattedtext','formattedtext','longblob','','','','not null');
}
return $result;
}

View File

@ -272,7 +272,7 @@ CREATE TABLE `prefix_cache_filters` (
CREATE TABLE `prefix_cache_text` (
`id` int(10) unsigned NOT NULL auto_increment,
`md5key` varchar(32) NOT NULL default '',
`formattedtext` longtext NOT NULL default '',
`formattedtext` longblob NOT NULL default '',
`timemodified` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `md5key` (`md5key`)

View File

@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2006041000; // YYYYMMDD = date
$version = 2006041001; // YYYYMMDD = date
// XY = increments within a single day
$release = '1.6 Beta 2'; // Human-friendly version name