use of org.springframework.boot.actuate.endpoint.FlywayEndpoint.FlywayReport in project spring-boot by spring-projects.
the class FlywayEndpoint method invoke.
@Override
public List<FlywayReport> invoke() {
List<FlywayReport> reports = new ArrayList<>();
for (Map.Entry<String, Flyway> entry : this.flyways.entrySet()) {
List<FlywayMigration> migrations = new ArrayList<>();
for (MigrationInfo info : entry.getValue().info().all()) {
migrations.add(new FlywayMigration(info));
}
reports.add(new FlywayReport(entry.getKey(), migrations));
}
return reports;
}
Aggregations