Failed to ugrade a Spring Boot app to Flyway 7.0.0

In Flyway 7 the signature of migrate changed.

To get Flyway 7.x.x working with Spring Boot 2.3.x you can provide a custom FlywayMigrationStrategy implementation, which calls the the right migrate method.

import org.flywaydb.core.Flyway;
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy;
import org.springframework.stereotype.Component;

@Component
public class FlywayMigrationStrategyImpl implements FlywayMigrationStrategy {
    @Override
    public void migrate(Flyway flyway) {
        flyway.migrate();
    }
}

Basically, see Philip's comment on your question.

Flyway 7.x.x is not currently compatible with Spring Boot 2.3.4

Temporary solution is to just downgrade to Flyway 6.5.7 (the last 6.x.x version) until Spring Boot 2.3.5 is released.

Read more and follow the issue here: https://github.com/spring-projects/spring-boot/issues/23514

Support for Flyway's new configuration options: https://github.com/spring-projects/spring-boot/issues/23579