node_access_example.install 632 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @file
  4. * Install, update, and uninstall functions for the node_access_example module.
  5. */
  6. /**
  7. * Implements hook_schema().
  8. */
  9. function node_access_example_schema() {
  10. $schema['node_access_example'] = array(
  11. 'description' => 'Example table for node_access_example module',
  12. 'fields' => array(
  13. 'nid' => array(
  14. 'type' => 'int',
  15. 'unsigned' => TRUE,
  16. 'not null' => TRUE,
  17. 'default' => 0,
  18. ),
  19. 'private' => array(
  20. 'type' => 'int',
  21. 'not null' => TRUE,
  22. 'default' => 0,
  23. ),
  24. ),
  25. 'primary key' => array('nid'),
  26. );
  27. return $schema;
  28. }