You are here

function views_data_export_update_6200 in Views data export 6.3

Same name and namespace in other branches
  1. 6.2 views_data_export.install \views_data_export_update_6200()

Convert the data column in the object cache.

File

./views_data_export.install, line 115

Code

function views_data_export_update_6200() {
  $ret = array();
  $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($ret, 'views_data_export_object_cache', 'data');
  db_add_field($ret, 'views_data_export_object_cache', 'data', $new_field);
  return $ret;
}