function video_field_schema in Video 7.2
Same name and namespace in other branches
- 7 video.install \video_field_schema()
Implements hook_field_schema().
File
- ./
video.install, line 204 - Provides installation schema for video.module @author Heshan Wanigasooriya <heshan@heidisoft.com>
Code
function video_field_schema($field) {
return array(
'columns' => array(
'fid' => array(
'description' => 'The {file_managed}.fid being referenced in this field.',
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
),
'thumbnail' => array(
'description' => 'The {file_managed}.fid being referenced for video thumbnail.',
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
),
),
'indexes' => array(
'fid' => array(
'fid',
),
),
'foreign keys' => array(
'fid' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
),
);
}