Mercurial > hg > rr-repo
comparison sites/all/modules/references/user_reference/user_reference.install @ 4:ce11bbd8f642
added modules
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Thu, 19 Sep 2013 10:38:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:b28be78d8160 | 4:ce11bbd8f642 |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * Install, update and uninstall functions for the user_reference module. | |
6 */ | |
7 | |
8 /** | |
9 * Implements hook_field_schema(); | |
10 */ | |
11 function user_reference_field_schema($field) { | |
12 $columns = array( | |
13 'uid' => array( | |
14 'type' => 'int', | |
15 'unsigned' => TRUE, | |
16 'not null' => FALSE, | |
17 ), | |
18 ); | |
19 return array( | |
20 'columns' => $columns, | |
21 'indexes' => array('uid' => array('uid')), | |
22 'foreign keys' => array( | |
23 'uid' => array( | |
24 'table' => 'users', | |
25 'columns' => array('uid' => 'uid'), | |
26 ), | |
27 ), | |
28 ); | |
29 } |