- 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()) {
+ quInfo() << qPrintable(tr("Installed database schema (version %1) is not up to date. Upgrading to "
+ "version %2... This may take a while for major upgrades."
+ ).arg(installedSchemaVersion()).arg(schemaVersion()));
+ emit dbUpgradeInProgress(true);
+ auto upgradeResult = upgradeDb();
+ emit dbUpgradeInProgress(false);
+ if (!upgradeResult) {