aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorFabio Varesano <fax8@13637.no-reply.drupal.org>2007-01-12 15:18:55 +0000
committerFabio Varesano <fax8@13637.no-reply.drupal.org>2007-01-12 15:18:55 +0000
commit377b685476f1041ff12411c0ac093433bd411c1d (patch)
tree6e7893ab12f0e19bdda0f421099151413db56fdf /plugins
parent18fbdce5034299832762b72e4653bf6028e8252d (diff)
downloadvideo-377b685476f1041ff12411c0ac093433bd411c1d.tar.gz
video-377b685476f1041ff12411c0ac093433bd411c1d.tar.bz2
Added video_ffmpeg_helper.install
Diffstat (limited to 'plugins')
-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;
+ }
+}
+