Skip to content
Snippets Groups Projects
Commit b706e780 authored by Matthai Kurian's avatar Matthai Kurian
Browse files

Needs mkdirs for starting off with empty data dir

parent 2eba56c5
No related branches found
No related tags found
No related merge requests found
...@@ -137,6 +137,7 @@ public class DatabaseUpgradeManager extends UpgradeManagerImpl { ...@@ -137,6 +137,7 @@ public class DatabaseUpgradeManager extends UpgradeManagerImpl {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
protected void initUpgradesHistories() { protected void initUpgradesHistories() {
File upgradesDir = new File(WebappHelper.getUserDataRoot(), SYSTEM_DIR); File upgradesDir = new File(WebappHelper.getUserDataRoot(), SYSTEM_DIR);
upgradesDir.mkdirs();
File upgradesHistoriesFile = new File(upgradesDir, INSTALLED_UPGRADES_XML); File upgradesHistoriesFile = new File(upgradesDir, INSTALLED_UPGRADES_XML);
if (upgradesHistoriesFile.exists()) { if (upgradesHistoriesFile.exists()) {
upgradesHistories = (Map<String, UpgradeHistoryData>) XStreamHelper.readObject(upgradesHistoriesFile); upgradesHistories = (Map<String, UpgradeHistoryData>) XStreamHelper.readObject(upgradesHistoriesFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment