user_reference.install 552 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the user_reference module.
  5. */
  6. /**
  7. * Implements hook_field_schema();
  8. */
  9. function user_reference_field_schema($field) {
  10. $columns = array(
  11. 'uid' => array(
  12. 'type' => 'int',
  13. 'unsigned' => TRUE,
  14. 'not null' => FALSE,
  15. ),
  16. );
  17. return array(
  18. 'columns' => $columns,
  19. 'indexes' => array('uid' => array('uid')),
  20. 'foreign keys' => array(
  21. 'uid' => array(
  22. 'table' => 'users',
  23. 'columns' => array('uid' => 'uid'),
  24. ),
  25. ),
  26. );
  27. }