Ticket #3600: osd_menu_editor_db_check.diff

File osd_menu_editor_db_check.diff, 1.0 KB (added by skamithi, 15 years ago)

db_check.cpp patch

  • libs/libmythtv/dbcheck.cpp

     
    1818#define MINIMUM_DBMS_VERSION 5,0,15
    1919
    2020/// This is the DB schema version expected by the running MythTV instance.
    21 const QString currentDatabaseVersion = "1228";
     21const QString currentDatabaseVersion = "1229";
    2222
    2323static bool UpdateDBVersionNumber(const QString &newnumber);
    2424static bool performActualUpdate(
     
    43964396            return false;
    43974397    }
    43984398
     4399    if (dbver == "1228")
     4400    {
     4401        const char *updates[] = {
     4402"CREATE TABLE IF NOT EXISTS tvosdmenu ("
     4403"osdcategory VARCHAR(32) NOT NULL PRIMARY KEY,"
     4404"livetv tinyint(4) NOT NULL default '0',"
     4405"recorded tinyint(4) NOT NULL default '0',"
     4406"video tinyint(4) NOT NULL default '0',"
     4407"dvd tinyint(4) NOT NULL default '0',"
     4408"description varchar(32) NOT NULL);"
     4409};
     4410        if (!performActualUpdate(updates, "1229", dbver))
     4411            return false;
     4412    }
     4413
    43994414    return true;
    44004415}
    44014416