mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:35:23 +00:00
UI: ConfManager: Minor refactor
This commit is contained in:
parent
a59077a950
commit
d824118bbc
@ -314,11 +314,13 @@ bool migrateFunc(SqliteDb *db, int version, bool isNewDb, void *ctx)
|
||||
{
|
||||
Q_UNUSED(ctx);
|
||||
|
||||
if (isNewDb)
|
||||
if (isNewDb) {
|
||||
// COMPAT: DB schema
|
||||
return true;
|
||||
}
|
||||
|
||||
// COMPAT
|
||||
if (version <= 21) {
|
||||
// COMPAT: DB content
|
||||
if (version < 21) {
|
||||
migrateAppPaths(db);
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,13 @@ bool migrateFunc(SqliteDb *db, int version, bool isNewDb, void *ctx)
|
||||
{
|
||||
Q_UNUSED(ctx);
|
||||
|
||||
if (isNewDb)
|
||||
if (isNewDb) {
|
||||
// COMPAT: DB schema
|
||||
return true;
|
||||
}
|
||||
|
||||
// COMPAT
|
||||
if (version <= 7) {
|
||||
// COMPAT: DB content
|
||||
if (version < 7) {
|
||||
const QString srcSchema = SqliteDb::migrationOldSchemaName();
|
||||
const QString dstSchema = SqliteDb::migrationNewSchemaName();
|
||||
|
||||
|
@ -31,11 +31,13 @@ bool migrateFunc(SqliteDb *db, int version, bool isNewDb, void *ctx)
|
||||
{
|
||||
Q_UNUSED(ctx);
|
||||
|
||||
if (isNewDb)
|
||||
if (isNewDb) {
|
||||
// COMPAT: DB schema
|
||||
return true;
|
||||
}
|
||||
|
||||
// COMPAT
|
||||
if (version <= 3) {
|
||||
// COMPAT: DB content
|
||||
if (version < 3) {
|
||||
// Move apps' total traffic to separate table
|
||||
const QString srcSchema = SqliteDb::migrationOldSchemaName();
|
||||
const QString dstSchema = SqliteDb::migrationNewSchemaName();
|
||||
|
Loading…
Reference in New Issue
Block a user