Ticket #2589: program_index.diff
File program_index.diff, 993 bytes (added by , 19 years ago) |
---|
-
dbcheck.cpp
old new using namespace std; 10 10 #include "mythdbcon.h" 11 11 12 12 /// This is the DB schema version expected by the running MythTV instance. 13 const QString currentDatabaseVersion = "116 5";13 const QString currentDatabaseVersion = "1164"; 14 14 15 15 static bool UpdateDBVersionNumber(const QString &newnumber); 16 16 static bool performActualUpdate(const QString updates[], QString version, … … static bool doUpgradeTVDatabaseSchema(vo 2617 2617 return false; 2618 2618 } 2619 2619 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 2630 2620 //"ALTER TABLE cardinput DROP COLUMN preference;" in 0.22 2631 2621 //"ALTER TABLE channel DROP COLUMN atscsrcid;" in 0.22 2632 2622 //"ALTER TABLE recordedmarkup DROP COLUMN offset;" in 0.22