|
MythTV master
|
Go to the source code of this file.
Typedefs | |
| using | DBUpdates = std::vector< std::string > |
Functions | |
| MBASE_PUBLIC bool | performActualUpdate (const QString &component, const QString &versionkey, const DBUpdates &updates, const QString &version, QString &dbver) |
| MBASE_PUBLIC bool | performUpdateSeries (const QString &component, const DBUpdates &updates) |
| MBASE_PUBLIC bool | UpdateDBVersionNumber (const QString &component, const QString &versionkey, const QString &newnumber, QString &dbver) |
| Updates the schema version stored in the database. More... | |
| using DBUpdates = std::vector<std::string> |
Definition at line 9 of file mythdbcheck.h.
| MBASE_PUBLIC bool performActualUpdate | ( | const QString & | component, |
| const QString & | versionkey, | ||
| const DBUpdates & | updates, | ||
| const QString & | version, | ||
| QString & | dbver | ||
| ) |
Definition at line 113 of file dbcheckcommon.cpp.
Referenced by doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), doUpgradeVideoDatabaseSchema(), InitializeDatabase(), InitializeMythSchema(), InitializeVideoSchema(), UpgradeArchiveDatabaseSchema(), UpgradeBrowserDatabaseSchema(), UpgradeGameDatabaseSchema(), and UpgradeNewsDatabaseSchema().
| MBASE_PUBLIC bool performUpdateSeries | ( | const QString & | component, |
| const DBUpdates & | updates | ||
| ) |
Definition at line 80 of file dbcheckcommon.cpp.
Referenced by doUpgradeTVDatabaseSchema(), and performActualUpdate().
| MBASE_PUBLIC bool UpdateDBVersionNumber | ( | const QString & | component, |
| const QString & | versionkey, | ||
| const QString & | newnumber, | ||
| QString & | dbver | ||
| ) |
Updates the schema version stored in the database.
Updates "DBSchemaVer" property in the settings table.
| component | Name of componenet being updated. Used for messages. |
| versionkey | The name of the key for the schema version. |
| newnumber | New schema version. |
| dbver | the database version at the end of the function is returned in this parameter, if things go well this will be 'newnumber'. |
Definition at line 28 of file dbcheckcommon.cpp.
Referenced by doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), doUpgradeVideoDatabaseSchema(), and performActualUpdate().