function flipping_book_reference_field_schema in Flipping Book 7
Implements hook_field_schema().
File
- ./
flipping_book_reference.install, line 12 - Install, update and uninstall functions for the flipping_book_reference module.
Code
function flipping_book_reference_field_schema($field) {
$columns = array(
'fbid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
);
return array(
'columns' => $columns,
'indexes' => array(
'fbid' => array(
'fbid',
),
),
'foreign keys' => array(
'fbid' => array(
'table' => 'flipping_book',
'columns' => array(
'fbid' => 'fbid',
),
),
),
);
}