UI: SqliteDb: Minor refactor

This commit is contained in:
Nodir Temirkhodjaev 2023-08-16 18:58:53 +05:00
parent 20af7f332a
commit 5901b48503
2 changed files with 3 additions and 1 deletions

View File

@ -290,7 +290,7 @@ QStringList SqliteDb::tableNames(const QString &schemaName)
const auto sql = QString("SELECT name FROM %1"
" WHERE type = 'table'"
" AND name NOT LIKE 'sqlite_%'"
" AND name NOT LIKE '%%2_%';")
" AND name NOT LIKE '%%2%';")
.arg(masterTable, ftsTableSuffix);
SqliteStmt stmt;

View File

@ -933,6 +933,8 @@ bool ConfManager::purgeApps()
if (FileUtil::isDriveFilePath(appPath) && !AppInfoUtil::fileExists(appPath)) {
const qint64 appId = stmt.columnInt64(0);
appIdList.append(appId);
qCDebug(LC) << "Purge obsolete app:" << appId << appPath;
}
}
}