Update PR

Update PR
This commit is contained in:
abraunegg 2021-11-05 11:44:02 +11:00
parent 74235b7239
commit 820e4b1e39
2 changed files with 8 additions and 2 deletions

View file

@ -51,14 +51,16 @@ final class ItemDatabase
dbVersion = db.getVersion();
} catch (SqliteException e) {
// An error was generated - what was the error?
log.error("\nAn internal database error occurred: " ~ e.msg ~ "\n");
// "\nAn internal database error occurred: " ~ e.msg ~ "\n"
log.error(provideLanguageTranslation(languageIdentifier,331) ~ e.msg ~ "\n");
exit(-1);
}
if (dbVersion == 0) {
createTable();
} else if (db.getVersion() != itemDatabaseVersion) {
log.log("The item database is incompatible, re-creating database table structures");
// "The item database is incompatible, re-creating database table structures"
log.log(provideLanguageTranslation(languageIdentifier,332));
db.exec("DROP TABLE item");
createTable();
}

View file

@ -482,6 +482,10 @@ void initialise_EN_AU(){
JSONValue([ "328": "ERROR: inotify_add_watch failed: " ]),
JSONValue([ "329": "Monitoring this directory for local changes: " ]),
JSONValue([ "330": "Removed this directory from being monitored for local changes: " ]),
JSONValue([ "331": "\nAn internal database error occurred: " ]),
JSONValue([ "332": "The item database is incompatible, re-creating database table structures" ]),
JSONValue([ "330": "Removed this directory from being monitored for local changes: " ]),
]);