Some work.

This commit is contained in:
Martin Rotter 2015-12-03 21:04:26 +01:00
parent b44292311e
commit cff9c84b5a
2 changed files with 2 additions and 4 deletions

View File

@ -305,7 +305,7 @@ QSqlDatabase DatabaseFactory::sqliteInitializeFileBasedDatabase(const QString &c
qPrintable(installed_db_schema),
APP_DB_SCHEMA_VERSION);
}
else {
else if (installed_db_schema != APP_DB_SCHEMA_VERSION) {
qDebug("Database schema was updated from '%s' to '%s' successully or it is already up to date.",
qPrintable(installed_db_schema),
APP_DB_SCHEMA_VERSION);
@ -616,7 +616,7 @@ QSqlDatabase DatabaseFactory::mysqlInitializeDatabase(const QString &connection_
qPrintable(installed_db_schema),
APP_DB_SCHEMA_VERSION);
}
else {
else if (installed_db_schema != APP_DB_SCHEMA_VERSION) {
qDebug("Database schema was updated from '%s' to '%s' successully or it is already up to date.",
qPrintable(installed_db_schema),
APP_DB_SCHEMA_VERSION);

View File

@ -116,8 +116,6 @@ bool StandardServiceRoot::deleteViaGui() {
return false;
}
// TODO: todo
// Remove all feeds.
if (!QSqlQuery(connection).exec(QString("DELETE FROM Feeds WHERE account_id = %1;").arg(accountId()))) {
return false;