mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:35:23 +00:00
UI: SqliteDb: Minor refactor
This commit is contained in:
parent
20af7f332a
commit
5901b48503
2
src/ui/3rdparty/sqlite/sqlitedb.cpp
vendored
2
src/ui/3rdparty/sqlite/sqlitedb.cpp
vendored
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user