Skip to content

Conversation

Chanwon-Seo
Copy link
Contributor

This PR resolves issue #46969.

Summary

Allows spring.flyway.ignore-migration-patterns to be set to an empty string to align with Flyway's documented behavior for unsetting default migration patterns.

Changes

  • In FlywayAutoConfiguration, removed the condition that prevented an empty list from being passed to Flyway's ignoreMigrationPatterns configuration.
  • This change ensures that setting spring.flyway.ignore-migration-patterns= in application properties works as expected.

Testing

The existing test ignoreMigrationPatternsIsEmpty in FlywayAutoConfigurationTests was used to verify the fix.

Allows 'spring.flyway.ignore-migration-patterns' to be set to an empty
string to align with Flyway's documented behavior for unsetting
default migration patterns.

Signed-off-by: Chanwon-Seo <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 28, 2025
@mhalbritter mhalbritter changed the title Fix Allow empty string for spring.flyway.ignore-migration-patterns Flyway Ignore Migration Patterns setting can't be set to an empty string Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants