|
|
|
@ -107,6 +107,15 @@ public class SqlDatabaseUpgradeService implements DatabaseUpgradeService { |
|
|
|
log.info("Schema updated."); |
|
|
|
} |
|
|
|
break; |
|
|
|
case "2.0.0": |
|
|
|
try (Connection conn = DriverManager.getConnection(dbUrl, dbUserName, dbPassword)) { |
|
|
|
log.info("Updating schema ..."); |
|
|
|
schemaUpdateFile = Paths.get(installScripts.getDataDir(), "upgrade", "2.1.1", SCHEMA_UPDATE_SQL); |
|
|
|
loadSql(schemaUpdateFile, conn); |
|
|
|
log.info("Schema updated."); |
|
|
|
} |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
throw new RuntimeException("Unable to upgrade SQL database, unsupported fromVersion: " + fromVersion); |
|
|
|
} |
|
|
|
|