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