summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPekka Vuorela <pvuorela@iki.fi>2025-10-15 09:51:39 +0300
committerPekka Vuorela <pvuorela@iki.fi>2025-10-15 14:14:43 +0300
commitf6cf9bf837c9edb7fae94cfba255b78cc428c7ca (patch)
treef3d1385b2d9e06555be1c4881ab8052f6ae288c1 /src
parent20e614d1f671befd80b2d1186d66998c0eed57ee (diff)
Remove ancient SQL table version check
The "latestinconversation" was introduced in 2011 and then soon enough renamed by commit de4ef974999da04de. The sql version check from commit 056c0c109eae763. Should be all ancient enough to get rid of. Change-Id: I1805c1dccf0394b56e91203c9baf2eac6f4a78bc Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: <matti.viljanen@kapsi.fi>
Diffstat (limited to 'src')
-rw-r--r--src/libraries/qmfclient/qmailstoresql_p.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libraries/qmfclient/qmailstoresql_p.cpp b/src/libraries/qmfclient/qmailstoresql_p.cpp
index 1dff3d52..72a69157 100644
--- a/src/libraries/qmfclient/qmailstoresql_p.cpp
+++ b/src/libraries/qmfclient/qmailstoresql_p.cpp
@@ -4257,18 +4257,6 @@ bool QMailStoreSql::setupTables(const QList<TableInfo> &tableList)
}
}
- // quick and dirty check if they're using an old version
- // TODO: remove this
- QSqlQuery query(simpleQuery(QLatin1String("SELECT count(*) FROM sqlite_master WHERE `type` = \"table\" AND `name` = \"mailmessages\" AND `sql` LIKE \"%latestinconversation%\""),
- QLatin1String("old check")));
- if (query.next()) {
- if (query.value(0).toInt() != 0) {
- qFatal("Unsupported database. Please delete the %s directory and try again.", qPrintable(QMail::dataPath()));
- }
- } else {
- qCWarning(lcMailStore) << "Failure running check";
- }
-
return result;
}