function views_update_6011

Remove views_object_cache table and move the data to ctools_object_cache.

File

./views.install, line 498

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');
}