X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fabstractsqlstorage.cpp;h=7e436fce41a12ed1121693d2c43b79c100e05296;hp=9fe95b9d05dbda19a847ac21da4a7cef81eaed9e;hb=56f686f70bbb212d83803be88adec6fdd225ea8e;hpb=d272e4719d2770a018f9a2856b61d9847eb24201 diff --git a/src/core/abstractsqlstorage.cpp b/src/core/abstractsqlstorage.cpp index 9fe95b9d..7e436fce 100644 --- a/src/core/abstractsqlstorage.cpp +++ b/src/core/abstractsqlstorage.cpp @@ -139,11 +139,20 @@ Storage::State AbstractSqlStorage::init(const QVariantMap &settings, } if (installedSchemaVersion() < schemaVersion()) { - qWarning() << qPrintable(tr("Installed Schema (version %1) is not up to date. Upgrading to version %2...").arg(installedSchemaVersion()).arg(schemaVersion())); + qWarning() << qPrintable(tr("Installed Schema (version %1) is not up to date. Upgrading to " + "version %2... This may take a while for major upgrades." + ).arg(installedSchemaVersion()).arg(schemaVersion())); + // TODO: The monolithic client won't show this message unless one looks into the debug log. + // This should be made more friendly, e.g. a popup message in the GUI. if (!upgradeDb()) { qWarning() << qPrintable(tr("Upgrade failed...")); return NotAvailable; } + // Warning messages are also sent to the console, while Info messages aren't. Add a message + // when migration succeeds to avoid confusing folks by implying the schema upgrade failed if + // later functionality does not work. + qWarning() << qPrintable(tr("Installed Schema successfully upgraded to version %1." + ).arg(schemaVersion())); } quInfo() << qPrintable(displayName()) << "storage backend is ready. Schema version:" << installedSchemaVersion();