Ticket #4029: 20070928__recordid.diff

File 20070928__recordid.diff, 1.0 KB (added by tilghman@…, 17 years ago)

Patch file

  • dbcheck.cpp

     
    1111#include "datadirect.h" // for DataDirectProcessor::FixProgramIDs
    1212
    1313/// This is the DB schema version expected by the running MythTV instance.
    14 const QString currentDatabaseVersion = "1160";
     14const QString currentDatabaseVersion = "1161";
    1515
    1616static bool UpdateDBVersionNumber(const QString &newnumber);
    1717static bool performActualUpdate(const QString updates[], QString version,
     
    25612561            return false;
    25622562    }
    25632563
     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
    25642575//"ALTER TABLE capturecard DROP COLUMN dvb_recordts;" in 0.21
    25652576//"ALTER TABLE capturecard DROP COLUMN dvb_hw_decoder;" in 0.21
    25662577//"ALTER TABLE cardinput DROP COLUMN preference;" in 0.22