function views_update_6004

File

./views.install, line 336

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