You are here

function views_update_6011 in Views (for Drupal 7) 7.3

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

Remove views_object_cache table and move the data to ctools_object_cache.

File

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

Code

function views_update_6011() {
  $caches = db_query("SELECT * FROM {views_object_cache}");
  foreach ($caches as $item) {
    drupal_write_record('ctools_object_cache', $item);
  }
  db_drop_table('views_object_cache');
}