Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.448 diff -u -r1.448 system.install --- modules/system/system.install 18 Feb 2010 04:36:38 -0000 1.448 +++ modules/system/system.install 24 Feb 2010 13:09:16 -0000 @@ -1230,7 +1230,7 @@ 'description' => 'The queue name.', ), 'data' => array( - 'type' => 'text', + 'type' => 'blob', 'not null' => FALSE, 'size' => 'big', 'serialize' => TRUE, @@ -2426,6 +2426,21 @@ } /** + * Change {queue}.data column from text to blob. + */ +function system_update_7051() { + $data_column_schema = array('description' => 'A collection of data to cache.', 'type' => 'blob', 'not null' => FALSE, 'size' => 'big'); + if (db_driver() == 'pgsql') { + db_add_field('queue', 'data_temp', $data_column_schema); + db_query('UPDATE {queue} SET data_temp = data::bytea'); + db_drop_field('queue', 'data'); + db_change_field('queue', 'data_temp', 'data', $data_column_schema); + } else { + db_change_field('queue', 'data', 'data', $data_column_schema); + } +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */