Now cache_text->formattedtext is a longtext again.
(both PG and the UTF8 migration script were working with it as text, so impact should be minimal)
This commit is contained in:
+2
-2
@@ -250,7 +250,7 @@
|
||||
<FIELDS>
|
||||
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" NEXT="md5key"/>
|
||||
<FIELD NAME="md5key" TYPE="char" LENGTH="32" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="id" NEXT="formattedtext"/>
|
||||
<FIELD NAME="formattedtext" TYPE="binary" LENGTH="big" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="md5key" NEXT="timemodified"/>
|
||||
<FIELD NAME="formattedtext" TYPE="text" LENGTH="big" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="md5key" NEXT="timemodified"/>
|
||||
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="formattedtext"/>
|
||||
</FIELDS>
|
||||
<KEYS>
|
||||
@@ -1092,4 +1092,4 @@
|
||||
</SENTENCES>
|
||||
</STATEMENT>
|
||||
</STATEMENTS>
|
||||
</XMLDB>
|
||||
</XMLDB>
|
||||
|
||||
@@ -2291,6 +2291,11 @@ function main_upgrade($oldversion=0) {
|
||||
execute_sql("ALTER TABLE `{$CFG->prefix}context` ADD UNIQUE INDEX `contextlevel-instanceid` (`contextlevel`, `instanceid`)",false);
|
||||
}
|
||||
|
||||
if ($oldversion < 2006092201) {
|
||||
execute_sql('TRUNCATE TABLE '.$CFG->prefix.'cache_text', true);
|
||||
table_column('cache_text','formattedtext','formattedtext','longtext','','','','not null');
|
||||
}
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
+1
-1
@@ -274,7 +274,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` longblob NOT NULL default '',
|
||||
`formattedtext` longtext NOT NULL default '',
|
||||
`timemodified` int(10) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `md5key` (`md5key`)
|
||||
|
||||
Reference in New Issue
Block a user