function commerce_line_item_field_schema in Commerce Core 7
Implements hook_field_schema().
File
- modules/
line_item/ commerce_line_item.install, line 84
Code
function commerce_line_item_field_schema($field) {
if ($field['type'] == 'commerce_line_item_reference') {
return array(
'columns' => array(
'line_item_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'indexes' => array(
'line_item_id' => array(
'line_item_id',
),
),
'foreign keys' => array(
'line_item_id' => array(
'table' => 'commerce_line_item',
'columns' => array(
'line_item_id' => 'line_item_id',
),
),
),
);
}
}