function views_data_export_update_7100 in Views data export 7.4
Same name and namespace in other branches
- 7.3 views_data_export.install \views_data_export_update_7100()
Convert the data column in the object cache.
File
- ./
views_data_export.install, line 104
Code
function views_data_export_update_7100() {
$new_field = array(
'type' => 'text',
'size' => 'big',
'description' => 'Serialized data being stored.',
'serialize' => TRUE,
);
// Drop and re-add this field because there is a bug in
// db_change_field that causes this to fail when trying to cast the data.
db_drop_field('views_data_export_object_cache', 'data');
db_add_field('views_data_export_object_cache', 'data', $new_field);
}