mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore: log schema version when we error due to future db
This commit is contained in:
parent
746314baf2
commit
17bbe24ec5
|
@ -196,7 +196,8 @@ void dbSchemaUpgrade(std::shared_ptr<RawDatabase>& db)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (databaseSchemaVersion > SCHEMA_VERSION) {
|
if (databaseSchemaVersion > SCHEMA_VERSION) {
|
||||||
qWarning() << "Database version is newer than we currently support. Please upgrade qTox";
|
qWarning().nospace() << "Database version (" << databaseSchemaVersion <<
|
||||||
|
") is newer than we currently support (" << SCHEMA_VERSION << "). Please upgrade qTox";
|
||||||
// We don't know what future versions have done, we have to disable db access until we re-upgrade
|
// We don't know what future versions have done, we have to disable db access until we re-upgrade
|
||||||
db.reset();
|
db.reset();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user