function workflow_access_schema in Workflow 7.2
Same name and namespace in other branches
- 8 modules/workflow_access/workflow_access.install \workflow_access_schema()
- 6.2 workflow_access/workflow_access.install \workflow_access_schema()
- 6 workflow_access/workflow_access.install \workflow_access_schema()
- 7 workflow_access/workflow_access.install \workflow_access_schema()
Implements hook_schema().
File
- workflow_access/
workflow_access.install, line 11 - Workflow access installation.
Code
function workflow_access_schema() {
$schema['workflow_access'] = array(
'description' => 'Workflow access tables',
'fields' => array(
'sid' => array(
'type' => 'int',
'description' => 'The Workflow state ID.',
'not null' => TRUE,
),
'rid' => array(
'type' => 'int',
'not null' => TRUE,
),
'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,
),
),
'primary key' => array(
'sid',
'rid',
),
'indexes' => array(
'rid' => array(
'rid',
),
),
);
return $schema;
}