You are here

function revisioning_scheduler_schema in Revisioning 6.3

Same name and namespace in other branches
  1. 8 revisioning_scheduler/revisioning_scheduler.install \revisioning_scheduler_schema()
  2. 7 revisioning_scheduler/revisioning_scheduler.install \revisioning_scheduler_schema()

Implementation of hook_schema().

File

revisioning_scheduler/revisioning_scheduler.install, line 24
Install and uninstall hooks for Revisioning Scheduler module.

Code

function revisioning_scheduler_schema() {
  $schema['revisioning_scheduler'] = array(
    'description' => 'The base table for revisions that are scheduled to be published',
    'fields' => array(
      'revision_vid' => array(
        'description' => 'The identifier for this revision',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'revision_nid' => array(
        'description' => 'The primary identifier for this node',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'revision_uid' => array(
        'description' => 'The user who submitted this revision',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'revision_date' => array(
        'description' => 'The date when this revision should be published',
        'type' => 'int',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'revision_vid',
    ),
  );
  return $schema;
}