You are here

function views_update_6004 in Views (for Drupal 7) 7.3

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

File

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

Code

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