video_ffmpeg_helper.install in Video 5
Same filename and directory in other branches
Provide installation functions for video_ffmpeg_helper.module .
@author Fabio Varesano <fvaresano at yahoo dot it>
File
plugins/video_ffmpeg_helper/video_ffmpeg_helper.installView source
<?php
/**
* @file
* Provide installation functions for video_ffmpeg_helper.module .
*
* @author Fabio Varesano <fvaresano at yahoo dot it>
*/
function video_ffmpeg_helper_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {video_rendering} (\n vid int(10) unsigned NOT NULL default '0',\n nid int(10) unsigned NOT NULL default '0',\n origfile text NOT NULL default '',\n pid int(10) unsigned NOT NULL default '0',\n status int(1) unsigned NOT NULL default '0',\n started int NOT NULL default '0',\n completed int NOT NULL default '0',\n PRIMARY KEY (vid)\n ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
break;
case 'pgsql':
db_query("CREATE TABLE {video_rendering} (\n vid integer NOT NULL default '0',\n nid integer NOT NULL default '0',\n origfile text NOT NULL default '',\n pid integer NOT NULL default '0',\n status integer NOT NULL default '1',\n PRIMARY KEY (vid)\n );");
break;
}
}
/**
* Uninstall video_ffmpeg_helper module
*
* @return array
*/
function video_ffmpeg_helper_uninstall() {
db_query('DROP TABLE {video_rendering}');
}
Functions
Name | Description |
---|---|
video_ffmpeg_helper_install | @file Provide installation functions for video_ffmpeg_helper.module . |
video_ffmpeg_helper_uninstall | Uninstall video_ffmpeg_helper module |