You are here

function workflow_access_schema in Workflow 6.2

Same name and namespace in other branches
  1. 8 modules/workflow_access/workflow_access.install \workflow_access_schema()
  2. 6 workflow_access/workflow_access.install \workflow_access_schema()
  3. 7.2 workflow_access/workflow_access.install \workflow_access_schema()
  4. 7 workflow_access/workflow_access.install \workflow_access_schema()

Implementation of hook_schema().

File

workflow_access/workflow_access.install, line 20

Code

function workflow_access_schema() {
  $schema['workflow_access'] = array(
    'fields' => array(
      'sid' => array(
        'type' => 'serial',
        'not null' => TRUE,
      ),
      'rid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'grant_view' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
      'grant_update' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
      'grant_delete' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'indexes' => array(
      'rid' => array(
        'rid',
      ),
      'sid' => array(
        'sid',
      ),
    ),
  );
  return $schema;
}