pull/10130/head
Phillip Webb 7 years ago
parent 9cb0a81e50
commit 80f023f996

@ -33,16 +33,16 @@ import org.springframework.boot.jdbc.SchemaManagementProvider;
*/
class FlywaySchemaManagementProvider implements SchemaManagementProvider {
private final List<Flyway> flyways;
private final List<Flyway> flywayInstances;
FlywaySchemaManagementProvider(List<Flyway> flyways) {
this.flyways = flyways;
FlywaySchemaManagementProvider(List<Flyway> flywayInstances) {
this.flywayInstances = flywayInstances;
}
@Override
public SchemaManagement getSchemaManagement(DataSource dataSource) {
for (Flyway flyway : this.flyways) {
if (dataSource.equals(flyway.getDataSource())) {
for (Flyway flywayInstance : this.flywayInstances) {
if (dataSource.equals(flywayInstance.getDataSource())) {
return SchemaManagement.MANAGED;
}
}

@ -33,16 +33,16 @@ import org.springframework.boot.jdbc.SchemaManagementProvider;
*/
class LiquibaseSchemaManagementProvider implements SchemaManagementProvider {
private final List<SpringLiquibase> liquibases;
private final List<SpringLiquibase> liquibaseInstances;
LiquibaseSchemaManagementProvider(List<SpringLiquibase> liquibases) {
this.liquibases = liquibases;
this.liquibaseInstances = liquibases;
}
@Override
public SchemaManagement getSchemaManagement(DataSource dataSource) {
for (SpringLiquibase liquibase : this.liquibases) {
if (dataSource.equals(liquibase.getDataSource())) {
for (SpringLiquibase liquibaseInstance : this.liquibaseInstances) {
if (dataSource.equals(liquibaseInstance.getDataSource())) {
return SchemaManagement.MANAGED;
}
}

Loading…
Cancel
Save