Ticket #4029: 20070928__recordid.diff
File 20070928__recordid.diff, 1.0 KB (added by , 17 years ago) |
---|
-
dbcheck.cpp
11 11 #include "datadirect.h" // for DataDirectProcessor::FixProgramIDs 12 12 13 13 /// This is the DB schema version expected by the running MythTV instance. 14 const QString currentDatabaseVersion = "116 0";14 const QString currentDatabaseVersion = "1161"; 15 15 16 16 static bool UpdateDBVersionNumber(const QString &newnumber); 17 17 static bool performActualUpdate(const QString updates[], QString version, … … 2561 2561 return false; 2562 2562 } 2563 2563 2564 if (dbver == "1160") 2565 { 2566 const QString updates[] = { 2567 "ALTER TABLE record MODIFY recordid INT(10) UNSIGNED NOT NULL AUTO_INCREMENT;", 2568 "" 2569 }; 2570 2571 if (!performActualUpdate(updates, "1161", dbver)) 2572 return false; 2573 } 2574 2564 2575 //"ALTER TABLE capturecard DROP COLUMN dvb_recordts;" in 0.21 2565 2576 //"ALTER TABLE capturecard DROP COLUMN dvb_hw_decoder;" in 0.21 2566 2577 //"ALTER TABLE cardinput DROP COLUMN preference;" in 0.22