initial upgrade of h2

This commit is contained in:
Jeremy Long
2017-08-07 18:37:03 -04:00
parent b44862f713
commit 9fd8f1c898
11 changed files with 22 additions and 16 deletions

View File

@@ -112,7 +112,7 @@ public class App {
}
File db;
try {
db = new File(Settings.getDataDirectory(), "dc.h2.db");
db = new File(Settings.getDataDirectory(), Settings.getString(Settings.KEYS.DB_FILE_NAME, "odc.h2.db"));
if (db.exists()) {
if (db.delete()) {
LOGGER.info("Database file purged; local copy of the NVD has been removed");