Fix broken constructor

This commit is contained in:
James Agnew 2019-12-18 14:28:28 -05:00
parent 0a21ab6941
commit 0b682eeb1f
1 changed files with 4 additions and 3 deletions

View File

@ -124,10 +124,11 @@ public abstract class BaseFlywayMigrateDatabaseCommand<T extends Enum> extends B
} else {
migrator = new FlywayMigrator(myMigrationTableName);
}
migrator.setConnectionUrl(url);
DriverTypeEnum.ConnectionProperties connectionProperties = driverType.newConnectionProperties(url, username, password);
migrator.setDataSource(connectionProperties.getDataSource());
migrator.setDriverType(driverType);
migrator.setUsername(username);
migrator.setPassword(password);
migrator.setDryRun(dryRun);
migrator.setNoColumnShrink(noColumnShrink);
migrator.setOutOfOrderPermitted(outOfOrderPermitted);