diff --git a/ctools.install b/ctools.install index 4a6f55c..21c8e8f 100644 --- a/ctools.install +++ b/ctools.install @@ -26,7 +26,7 @@ function ctools_requirements($phase) { } if (!function_exists('error_get_last')) { - $requirements['ctools_php_52']['title'] = t('CTools PHP requirements'); + $requirements['ctools_php_52']['title'] = t('CTools PHP requirements'); $requirements['ctools_php_52']['description'] = t('CTools requires certain features only available in PHP 5.2.0 or higher.'); $requirements['ctools_php_52']['severity'] = REQUIREMENT_WARNING; $requirements['ctools_php_52']['value'] = t('PHP !version', array('!version' => phpversion())); @@ -52,6 +52,13 @@ function ctools_schema_2() { // update the 'name' field to be 128 bytes long: $schema['ctools_object_cache']['fields']['name']['length'] = 128; + // Update the 'data' field to be type 'blob'. + $schema['ctools_object_cache']['fields']['data'] = array( + 'type' => 'blob', + 'description' => 'Serialized data being stored.', + 'serialize' => TRUE, + ); + // DO NOT MODIFY THIS TABLE -- this definition is used to create the table. // Changes to this table must be made in schema_3 or higher. $schema['ctools_css_cache'] = array( @@ -194,4 +201,11 @@ function ctools_update_6007() { return $ret; } - +function ctools_update_6008() { + db_change_field('ctools_object_cache', 'data', 'data', array( + 'type' => 'blob', + 'description' => 'Serialized data being stored.', + 'serialize' => TRUE, + ) + ); +}