function video_schema in Video 6.3
Same name and namespace in other branches
- 6.5 video.install \video_schema()
- 6 video.install \video_schema()
- 6.2 video.install \video_schema()
- 6.4 video.install \video_schema()
- 7.2 video.install \video_schema()
- 7 video.install \video_schema()
Implementation of hook_schema().
File
- ./
video.install, line 14 - Provide installation functions for video.module .
Code
function video_schema() {
$schema['video_rendering'] = array(
'description' => t('Store video transcoding queue'),
'fields' => array(
'fid' => array(
'description' => t('original file id'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'pid' => array(
'description' => t('Process ID'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'status' => array(
'description' => t('status of the transcoding'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'started' => array(
'description' => t('Started transcodings'),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'completed' => array(
'description' => t('Transcoding completed'),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'serialized_data' => array(
'description' => t('Informations related to the videos'),
'type' => 'text',
'not null' => FALSE,
),
),
'indexes' => array(
'status' => array(
'status',
),
),
'primary key' => array(
'fid',
),
);
return $schema;
}