You are here

function views_schema_6003 in Views (for Drupal 7) 7.3

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

Add missing unique key.

File

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

Code

function views_schema_6003() {
  $schema = views_schema(__FUNCTION__);
  $schema['views_view']['unique keys'] = array(
    'name' => array(
      'name',
    ),
  );
  unset($schema['views_view']['unique key']);
  return $schema;
}