Commit 50329033 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Make more room for rss feed data in mysql


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 320bdce4
......@@ -11,7 +11,7 @@
<FIELD NAME="link" TYPE="text" NOTNULL="false" />
<FIELD NAME="title" TYPE="text" NOTNULL="false" />
<FIELD NAME="description" TYPE="text" NOTNULL="false" />
<FIELD NAME="content" TYPE="text" NOTNULL="false" />
<FIELD NAME="content" TYPE="text" LENGTH="big" NOTNULL="false" />
<FIELD NAME="lastupdate" TYPE="datetime" NOTNULL="false" />
<FIELD NAME="image" TYPE="text" NOTNULL="false" />
</FIELDS>
......
......@@ -50,6 +50,17 @@ function xmldb_blocktype_externalfeed_upgrade($oldversion=0) {
execute_sql('ALTER TABLE {blocktype_externalfeed_data} add unique {blocextedata_url_uix} (url(255))');
}
}
if ($oldversion < 2009121600) {
if (is_mysql()) {
// Make content column wider (TEXT is only 65kb in mysql)
$table = new XMLDBTable('blocktype_externalfeed_data');
$field = new XMLDBField('content');
$field->setAttributes(XMLDB_TYPE_TEXT, "big", null, null);
change_field_precision($table, $field);
}
}
return true;
}
......
......@@ -28,7 +28,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008042101;
$config->version = 2009121600;
$config->release = '1.0.2';
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment