function video_upload_schema in Video 6
Same name and namespace in other branches
- 6.2 types/video_upload/video_upload.install \video_upload_schema()
Implementation of hook_schema().
File
- types/
video_upload/ video_upload.install, line 14 - Provide installation functions for video_upload.module .
Code
function video_upload_schema() {
$schema['video_upload'] = array(
'description' => t('Store video upload files'),
'fields' => array(
'vid' => array(
'description' => t('video id : primary key'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'description' => t('Node id : index of the {node}.nid'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'fid' => array(
'description' => t('FIle id, index to the {files}.fid'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'fid' => array(
'fid',
),
'nid' => array(
'nid',
),
),
'primary key' => array(
'vid',
),
);
return $schema;
}