Skip to content

spring.flyway.ignore-migration-patterns cannot be set to an empty string #46969

@manderson23

Description

@manderson23

The Flyway documentation for ignoreMigrationPatterns at https://documentation.red-gate.com/fd/flyway-ignore-migration-patterns-setting-277579002.html states

By default, future migrations are ignored. You can unset this by assigning an empty string to ignoreMigrationPatterns

Reviewing https://github.com/spring-projects/spring-boot/blob/3.5.x/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java it only sets the value of spring.flyway.ignore-migration-patterns when the list is not empty.

When using Flyway with Spring Boot it looks like it isn't possible to set to an empty string as documented by Flyway.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions