aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_ffmpeg_helper
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/video_ffmpeg_helper')
-rw-r--r--plugins/video_ffmpeg_helper/video_ffmpeg_helper.install40
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install
new file mode 100644
index 0000000..a8cedff
--- /dev/null
+++ b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install
@@ -0,0 +1,40 @@
+<?php
+// $Id$
+
+
+/**
+ * @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} (
+ vid int(10) unsigned NOT NULL default '0',
+ nid int(10) unsigned NOT NULL default '0',
+ origfile text NOT NULL default '',
+ pid int(10) unsigned NOT NULL default '0',
+ status int(1) unsigned NOT NULL default '0',
+ started int NOT NULL default '0',
+ completed int NOT NULL default '0',
+ PRIMARY KEY (vid)
+ ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
+ break;
+ case 'pgsql':
+ db_query("CREATE TABLE {video_rendering} (
+ vid integer NOT NULL default '0',
+ nid integer NOT NULL default '0',
+ origfile text NOT NULL default '',
+ pid integer NOT NULL default '0',
+ status integer NOT NULL default '1',
+ PRIMARY KEY (vid)
+ );");
+ break;
+ }
+}
+