Index: database/database.mysql
===================================================================
--- database/database.mysql	(revision 5735)
+++ database/database.mysql	(working copy)
@@ -166,7 +166,7 @@
 
 CREATE TABLE cache (
   cid varchar(255) NOT NULL default '',
-  data longtext,
+  data longblob,
   expire int(11) NOT NULL default '0',
   created int(11) NOT NULL default '0',
   headers text,
Index: database/updates.inc
===================================================================
--- database/updates.inc	(revision 5735)
+++ database/updates.inc	(working copy)
@@ -7,7 +7,7 @@
 function system_version($type) {
   switch ($type) {
     case SCHEMA:
-      return 157;
+      return 158;
 
     case SCHEMA_MIN:
       return 110;
@@ -1111,3 +1111,10 @@
   return $ret;
 }
 
+function system_update_158() {
+  $ret = array();
+  if ($GLOBALS['db_type'] == 'mysql') {
+    $ret[] = update_sql('ALTER TABLE {cache} CHANGE data data LONGBLOB');
+  }
+  return $ret;
+}
Index: update.php
===================================================================
--- update.php	(revision 5735)
+++ update.php	(working copy)
@@ -172,6 +172,7 @@
       '2005-09-18' => 148, '2005-09-27' => 149, '2005-10-15' => 150,
       '2005-10-23' => 151, '2005-10-28' => 152, '2005-11-03' => 153,
       '2005-11-14' => 154, '2005-11-27' => 155, '2005-12-03' => 156,
+      '2005-12-10' => 158,
     );
 
     switch ($GLOBALS['db_type']) {
