rendered paste bodyIndex: 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;
}