function field_collection_field_schema in Field collection 7
Implements hook_field_schema().
File
- ./
field_collection.install, line 78 - Install, update and uninstall functions for the field_collection module.
Code
function field_collection_field_schema($field) {
$columns = array(
'value' => array(
'type' => 'int',
'not null' => FALSE,
'description' => 'The field collection item id.',
),
'revision_id' => array(
'type' => 'int',
'not null' => FALSE,
'description' => 'The field collection item revision id.',
),
);
return array(
'columns' => $columns,
'indexes' => array(
'value' => array(
'value',
),
'revision_id' => array(
'revision_id',
),
),
);
}