workflow_access.install 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * @file
  4. * Workflow access installation.
  5. */
  6. /**
  7. * Implements hook_install().
  8. */
  9. function workflow_access_install() { }
  10. /**
  11. * Implements hook_uninstall().
  12. */
  13. function workflow_access_uninstall() { }
  14. /**
  15. * Implements hook_schema().
  16. */
  17. function workflow_access_schema() {
  18. $schema['workflow_access'] = array(
  19. 'description' => 'Workflow access tables',
  20. 'fields' => array(
  21. 'sid' => array(
  22. 'type' => 'serial',
  23. 'not null' => TRUE,
  24. ),
  25. 'rid' => array(
  26. 'type' => 'int',
  27. 'not null' => TRUE,
  28. 'default' => 0,
  29. ),
  30. 'grant_view' => array(
  31. 'type' => 'int',
  32. 'unsigned' => TRUE,
  33. 'size' => 'tiny',
  34. 'not null' => TRUE,
  35. 'default' => 0,
  36. ),
  37. 'grant_update' => array(
  38. 'type' => 'int',
  39. 'unsigned' => TRUE,
  40. 'size' => 'tiny',
  41. 'not null' => TRUE,
  42. 'default' => 0,
  43. ),
  44. 'grant_delete' => array(
  45. 'type' => 'int',
  46. 'unsigned' => TRUE,
  47. 'size' => 'tiny',
  48. 'not null' => TRUE,
  49. 'default' => 0,
  50. ),
  51. ),
  52. 'indexes' => array(
  53. 'rid' => array('rid'),
  54. 'sid' => array('sid'),
  55. ),
  56. );
  57. return $schema;
  58. }