You are here

function video_ffmpeg_helper_install in Video 5

Same name and namespace in other branches
  1. 6 plugins/video_ffmpeg_helper/video_ffmpeg_helper.install \video_ffmpeg_helper_install()
  2. 6.2 plugins/video_ffmpeg_helper/video_ffmpeg_helper.install \video_ffmpeg_helper_install()

@file Provide installation functions for video_ffmpeg_helper.module .

@author Fabio Varesano <fvaresano at yahoo dot it>

File

plugins/video_ffmpeg_helper/video_ffmpeg_helper.install, line 12
Provide installation functions for video_ffmpeg_helper.module .

Code

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;
  }
}