| 1 |
<?php
|
| 2 |
// $Id: workflow_access.install,v 1.2 2008/04/02 16:44:07 jvandyk Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
*/
|
| 7 |
function workflow_access_install() {
|
| 8 |
drupal_install_schema('workflow_access');
|
| 9 |
}
|
| 10 |
|
| 11 |
/**
|
| 12 |
* Implementation of hook_uninstall().
|
| 13 |
*/
|
| 14 |
function workflow_access_uninstall() {
|
| 15 |
drupal_uninstall_schema('workflow_access');
|
| 16 |
}
|
| 17 |
|
| 18 |
/**
|
| 19 |
* Implementation of hook_schema().
|
| 20 |
*/
|
| 21 |
function workflow_access_schema() {
|
| 22 |
$schema['workflow_access'] = array(
|
| 23 |
'fields' => array(
|
| 24 |
'sid' => array('type' => 'serial', 'not null' => TRUE),
|
| 25 |
'rid' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
|
| 26 |
'grant_view' => array('type' => 'int', 'unsigned' => TRUE, 'size' => 'tiny', 'not null' => TRUE, 'default' => 0),
|
| 27 |
'grant_update' => array('type' => 'int', 'unsigned' => TRUE, 'size' => 'tiny', 'not null' => TRUE, 'default' => 0),
|
| 28 |
'grant_delete' => array('type' => 'int', 'unsigned' => TRUE, 'size' => 'tiny', 'not null' => TRUE, 'default' => 0)
|
| 29 |
),
|
| 30 |
'indexes' => array(
|
| 31 |
'rid' => array('rid'),
|
| 32 |
'sid' => array('sid')),
|
| 33 |
);
|
| 34 |
return $schema;
|
| 35 |
}
|