All pastes #1942548 Raw Edit

Untitled

public text v1 · immutable
#1942548 ·published 2010-09-17 03:23 UTC
rendered paste body
Index: libs/libmythtv/dbcheck.cpp
===================================================================
--- libs/libmythtv/dbcheck.cpp	(revision 26350)
+++ libs/libmythtv/dbcheck.cpp	(working copy)
@@ -20,7 +20,7 @@
    mythtv/bindings/perl/MythTV.pm
 */
 /// This is the DB schema version expected by the running MythTV instance.
-const QString currentDatabaseVersion = "1263";
+const QString currentDatabaseVersion = "1264";
 
 static bool UpdateDBVersionNumber(const QString &newnumber, QString &dbver);
 static bool performActualUpdate(
@@ -5490,6 +5490,16 @@
             return false;
     }
 
+    if (dbver == "1263")
+    {
+        const char *updates[] = {
+"ALTER TABLE capturecard ADD COLUMN use_cam TINYINT NOT NULL default '0';",
+NULL
+};
+        if (!performActualUpdate(updates, "1264", dbver))
+            return false;
+    }
+
     return true;
 }