You are here

function views_revisions_schema in Views Revisions 6

Same name and namespace in other branches
  1. 7 views_revisions.install \views_revisions_schema()

Implements hook_schema().

File

./views_revisions.install, line 20

Code

function views_revisions_schema() {
  $schema['views_revisions'] = array(
    'description' => 'The base table for the views_revisions module.',
    'fields' => array(
      'vrvid' => array(
        'description' => 'The primary identifier for a views revisions entry.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'vid' => array(
        'description' => 'The views id.',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'uid' => array(
        'description' => 'The acting user id.',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'created' => array(
        'description' => 'The unix timestamp of when the revision was created.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'log' => array(
        'description' => 'The views revision log message.',
        'type' => 'text',
        'size' => 'medium',
      ),
      'data' => array(
        'description' => 'The export data of the view when the revision was created.',
        'type' => 'text',
        'size' => 'normal',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'vrvid',
    ),
  );
  return $schema;
}