if (runScripts) {
String handle = getDatabaseHandle(con);
String scriptPath = handle + "/210-to-230-migration.sql";
successMessage("Running database upgrade script: "+scriptPath);
runner = new SQLScriptRunner(scripts.getDatabaseScript(scriptPath));
runner.runScript(con, true);
messages.addAll(runner.getMessages());
}
} catch (Exception e) {
log.error("ERROR running 310 database upgrade script", e);
if (runner != null) messages.addAll(runner.getMessages());