mirror of
https://github.com/moodle/moodle.git
synced 2025-02-19 07:41:02 +01:00
Convert the text cache to use a blob, so that there are no character set
issues: see bug 5136
This commit is contained in:
parent
19407a4274
commit
71470b3bf1
@ -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;
|
||||
}
|
||||
|
@ -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`)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user