Update ebean-migration to 12.1.3 with support for Postgres create index concurrently

This commit is contained in:
rob bygrave
2020-01-29 11:29:29 +13:00
parent 5ff44703cf
commit 605150de5c
3 changed files with 18 additions and 11 deletions
@@ -20,12 +20,12 @@ import static org.assertj.core.api.Assertions.assertThat;
public class DbMigrationTest extends BaseTestCase {
private int runScript(boolean expectErrors, String scriptName) throws IOException {
private void runScript(boolean expectErrors, String scriptName) throws IOException {
String ddl = Helper.asText(this, "/dbmigration/migrationtest/" + server().getPluginApi().getDatabasePlatform().getName()+"/" + scriptName);
return runScript(expectErrors, ddl, scriptName);
runScript(expectErrors, ddl, scriptName);
}
private int runScript(boolean expectErrors, String content, String scriptName) {
private void runScript(boolean expectErrors, String content, String scriptName) {
DdlRunner runner = new DdlRunner(expectErrors, scriptName);
@@ -35,12 +35,11 @@ public class DbMigrationTest extends BaseTestCase {
if (expectErrors) {
connection.setAutoCommit(true);
}
int count = runner.runAll(content, connection);
runner.runAll(content, connection);
if (expectErrors) {
connection.setAutoCommit(false);
}
transaction.commit();
return count;
} catch (SQLException e) {
throw new PersistenceException("Failed to run script", e);