node_access_test.install 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the node_access_test module.
  5. */
  6. /**
  7. * Implements hook_schema().
  8. */
  9. function node_access_test_schema() {
  10. $schema['node_access_test'] = array(
  11. 'description' => 'The base table for node_access_test.',
  12. 'fields' => array(
  13. 'nid' => array(
  14. 'description' => 'The {node}.nid this record affects.',
  15. 'type' => 'int',
  16. 'unsigned' => TRUE,
  17. 'not null' => TRUE,
  18. 'default' => 0,
  19. ),
  20. 'private' => array(
  21. 'description' => 'Boolean indicating whether the node is private (visible to administrator) or not (visible to non-administrators).',
  22. 'type' => 'int',
  23. 'not null' => TRUE,
  24. 'default' => 0,
  25. ),
  26. ),
  27. 'indexes' => array(
  28. 'nid' => array('nid'),
  29. ),
  30. 'primary key' => array('nid'),
  31. 'foreign keys' => array(
  32. 'versioned_node' => array(
  33. 'table' => 'node',
  34. 'columns' => array('nid' => 'nid'),
  35. ),
  36. ),
  37. );
  38. return $schema;
  39. }