function views_schema_6004

Same name in other branches
  1. 7.x-3.x views.install \views_schema_6004()

Enlarge the views_object_cache.data column to prevent truncation and JS errors.

File

./views.install, line 313

Code

function views_schema_6004() {
    $schema = views_schema(__FUNCTION__);
    $schema['views_object_cache']['fields']['data']['type'] = 'text';
    $schema['views_object_cache']['fields']['data']['size'] = 'big';
    return $schema;
}