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 { class FlywaySchemaManagementProvider implements SchemaManagementProvider {
private final List<Flyway> flyways; private final List<Flyway> flywayInstances;
FlywaySchemaManagementProvider(List<Flyway> flyways) { FlywaySchemaManagementProvider(List<Flyway> flywayInstances) {
this.flyways = flyways; this.flywayInstances = flywayInstances;
} }
@Override @Override
public SchemaManagement getSchemaManagement(DataSource dataSource) { public SchemaManagement getSchemaManagement(DataSource dataSource) {
for (Flyway flyway : this.flyways) { for (Flyway flywayInstance : this.flywayInstances) {
if (dataSource.equals(flyway.getDataSource())) { if (dataSource.equals(flywayInstance.getDataSource())) {
return SchemaManagement.MANAGED; return SchemaManagement.MANAGED;
} }
} }

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

Loading…
Cancel
Save