Permalink
Browse files

Upgrade script for mythvideo.

git-svn-id: http://svn.mythtv.org/svn/trunk@2413 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
Isaac Richards
Isaac Richards committed Oct 19, 2003
1 parent 48acc95 commit c247e60cb28f876138b5804e84812f0be58770a7
Showing with 50 additions and 2 deletions.
  1. +2 −2 mythplugins/mythvideo/UPGRADING
  2. +48 −0 mythplugins/mythvideo/videodb/old/0.11-to-0.12.sql
@@ -1,6 +1,6 @@
-UPGRADING FROM RELEASE 0.11
+UPGRADING FROM RELEASE 0.12
---------------------------
-Nothing to do.
+Update your database with the videodb/0.11-to-0.12.sql script.
UPGRADING FROM RELEASE 0.10
---------------------------
@@ -0,0 +1,48 @@
+USE mythconverg;
+
+ALTER TABLE videometadata ADD playcommand VARCHAR(255);
+ALTER TABLE videometadata ADD INDEX(title);
+ALTER TABLE videometadata ADD browse BOOL NOT NULL DEFAULT 1;
+
+CREATE TABLE videotypes
+(
+ intid INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
+ extension VARCHAR(128) NOT NULL,
+ playcommand VARCHAR(255) NOT NULL,
+ f_ignore BOOL,
+ use_default BOOL
+);
+
+#
+# pre-defined values
+#
+
+INSERT INTO videotypes
+ (extension, playcommand, f_ignore, use_default)
+ VALUES
+ ("txt", "", 1, 0);
+
+INSERT INTO videotypes
+ (extension, playcommand, f_ignore, use_default)
+ VALUES
+ ("log", "", 1, 0);
+
+INSERT INTO videotypes
+ (extension, playcommand, f_ignore, use_default)
+ VALUES
+ ("mpg", "", 0, 1);
+
+INSERT INTO videotypes
+ (extension, playcommand, f_ignore, use_default)
+ VALUES
+ ("avi", "", 0, 1);
+
+INSERT INTO videotypes
+ (extension, playcommand, f_ignore, use_default)
+ VALUES
+ ("vob", "", 0, 1);
+
+INSERT INTO videotypes
+ (extension, playcommand, f_ignore, use_default)
+ VALUES
+ ("mpeg", "", 0, 1);

0 comments on commit c247e60

Please sign in to comment.