You are here

function views_update_6004 in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 views.install \views_update_6004()
  2. 7.3 views.install \views_update_6004()

File

./views.install, line 318
views.install Contains install and update functions for Views.

Code

function views_update_6004() {
  $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_object_cache', 'data');
  db_add_field($ret, 'views_object_cache', 'data', $new_field);
  return $ret;
}