Commit 61341839 authored by Drahomír Karchňák's avatar Drahomír Karchňák

#310 Refactoring before MR

parent d5eab77f
......@@ -54,6 +54,11 @@ public class DatabaseManager {
versionScriptExecutor.executeVersionScript(storage, this);
}
/**
* Gets all version scripts newer than the current version (current version not included)
* @param version
* @return
*/
public static List<VersionScript> getVersionScriptsFromVersion(int version) {
List<VersionScript> versionScripts = new ArrayList<VersionScript>();
......@@ -141,7 +146,7 @@ public class DatabaseManager {
try {
convertDatabase();
} catch (SQLException e) {
throw new IllegalStateException("Couldn't migrate database to actual version. Reason: " + e.getMessage());
throw new IllegalStateException("Couldn't migrate database to actual version. Reason: " + e.getMessage(), e);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment