function user_reference_field_schema in References 7.2
Implements hook_field_schema().
File
- user_reference/
user_reference.install, line 11 - Install, update and uninstall functions for the user_reference module.
Code
function user_reference_field_schema($field) {
$columns = array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
);
return array(
'columns' => $columns,
'indexes' => array(
'uid' => array(
'uid',
),
),
'foreign keys' => array(
'uid' => array(
'table' => 'users',
'columns' => array(
'uid' => 'uid',
),
),
),
);
}