Ticket #2589: program_index.diff

File program_index.diff, 993 bytes (added by Mark.Buechler@…, 19 years ago)

The sql patch..

  • dbcheck.cpp

    old new using namespace std; 
    1010#include "mythdbcon.h"
    1111
    1212/// This is the DB schema version expected by the running MythTV instance.
    13 const QString currentDatabaseVersion = "1165";
     13const QString currentDatabaseVersion = "1164";
    1414
    1515static bool UpdateDBVersionNumber(const QString &newnumber);
    1616static bool performActualUpdate(const QString updates[], QString version,
    static bool doUpgradeTVDatabaseSchema(vo 
    26172617            return false;
    26182618    }
    26192619
    2620     if (dbver == "1164")
    2621     {
    2622         const QString updates[] = {
    2623 "CREATE INDEX program_manualid ON program (manualid);",
    2624 ""
    2625 };
    2626         if (!performActualUpdate(updates, "1165", dbver))
    2627             return false;
    2628     }
    2629 
    26302620//"ALTER TABLE cardinput DROP COLUMN preference;" in 0.22
    26312621//"ALTER TABLE channel DROP COLUMN atscsrcid;" in 0.22
    26322622//"ALTER TABLE recordedmarkup DROP COLUMN offset;" in 0.22