diff options
author | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-05-27 01:48:29 +0000 |
---|---|---|
committer | Heshan Wanigasooriya <heshanmw@gmail.com> | 2009-05-27 01:48:29 +0000 |
commit | 8cd94d3aabb438fc8efa275c1b57e44d33e2fac5 (patch) | |
tree | 5447578ec99698510b79d8c4d26d802e5294fed8 /plugins/video_ffmpeg_helper/video_ffmpeg_helper.install | |
parent | 4caf05931d7bfff98084edcf0c31f5e8c4e38aae (diff) | |
download | video-8cd94d3aabb438fc8efa275c1b57e44d33e2fac5.tar.gz video-8cd94d3aabb438fc8efa275c1b57e44d33e2fac5.tar.bz2 |
updating 6--2 dev
Diffstat (limited to 'plugins/video_ffmpeg_helper/video_ffmpeg_helper.install')
-rw-r--r-- | plugins/video_ffmpeg_helper/video_ffmpeg_helper.install | 43 |
1 files changed, 31 insertions, 12 deletions
diff --git a/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install index 36289d5..f4b2ed9 100644 --- a/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install +++ b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install @@ -1,11 +1,11 @@ <?php +//$Id$ /** * @file * Provide installation functions for video_ffmpeg_helper.module . * - * @author Fabio Varesano <fvaresano at yahoo dot it> - * porting to Drupal 6 - * @author Heshan Wanigasooriya <heshan at heidisoft.com><heshanmw@gmail.com> + * @author Heshan Wanigasooriya <heshan at heidisoft dot com> + * <heshanmw at gmail dot com> * @todo */ @@ -14,64 +14,83 @@ */ function video_ffmpeg_helper_schema() { $schema['video_rendering'] = array( - 'description' => t('TODO'), + 'description' => t('Store video transcoding queue'), 'fields' => array( 'vid' => array( - 'description' => t('TODO'), + 'description' => t('video id : primary key'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'nid' => array( - 'description' => t('TODO'), + '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, ), 'origfile' => array( - 'description' => t('TODO'), + 'description' => t('original file path'), 'type' => 'text', 'not null' => TRUE, 'default' => '', ), 'pid' => array( - 'description' => t('TODO'), + 'description' => t('Pid'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'status' => array( - 'description' => t('TODO'), + 'description' => t('status of the transcoding'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'started' => array( - 'description' => t('TODO'), + 'description' => t('Started transcodings'), 'type' => 'int', 'not null' => TRUE, 'default' => 0, ), 'completed' => array( - 'description' => t('TODO'), + 'description' => t('Transcoding completed'), 'type' => 'int', 'not null' => TRUE, 'default' => 0, ), ), + 'indexes' => array( + 'fid' => array('fid'), + 'nid' => array('nid'), + ), 'primary key' => array('vid'), ); return $schema; } - +/** + * Implementation of hook_install(). + */ function video_ffmpeg_helper_install() { // Create tables. drupal_install_schema('video_ffmpeg_helper'); } +/** + * Implementation of hook_uninstall(). + */ +function video_ffmpeg_helper_uninstall() { + drupal_uninstall_schema('video_ffmpeg_helper'); +}
\ No newline at end of file |