Forbid database upgrade from version 2 to version 3

Always display date in insertion and fix a bug in day display
This commit is contained in:
2012-05-01 10:25:19 +02:00
parent aafc26c768
commit 3f428ab7c2
2 changed files with 35 additions and 4 deletions

View File

@@ -90,6 +90,8 @@ static void Version_2_to_3(QSqlDatabase& _db)
req = "UPDATE account SET hidden='0'";
UPDATE_TABLE("2", "3", "2");
ON_ERROR(_("Cannot update database version 2 to version 3 because some columns needs to be deleted."));
}
static update_func updates[] = {