Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignoreMissingPatterns not working #3881

Open
csternagel opened this issue Apr 23, 2024 · 2 comments
Open

ignoreMissingPatterns not working #3881

csternagel opened this issue Apr 23, 2024 · 2 comments

Comments

@csternagel
Copy link

Which version and edition of Flyway are you using?

10.11.0

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)

Maven plugin

in Flyway 8 we were relying on the setting (in Maven)

<ignoreMissingMigrations>true</ignoreMissingMigrations>

According to the release notes here https://rd.gt/416ObMi the new alternative for this option is now "ignoreMigrationPatterns", which due to the documentation here https://documentation.red-gate.com/fd/ignore-migration-patterns-224919720.html is used as follows:

<ignoreMigrationPatterns><ignoreMigrationPattern>*:missing</ignoreMigrationPattern></ignoreMigrationPatterns>

The problem ist that this option does not seem to apply at all. Even worse, when I replace the pattern like

<ignoreMigrationPatterns><ignoreMigrationPattern>versioned:missing</ignoreMigrationPattern></ignoreMigrationPatterns>

I get the error message

Flyway Redgate Edition Required: ignoreMigrationPattern with type 'versioned' is not supported by OSS Edition

which seems to suggest that this option is no longer part of the community edition. But that contradicts the documentation linked above.

Could somebody please clarify the situation?

@csternagel
Copy link
Author

csternagel commented Apr 24, 2024

Sorry, it was actually not MISSING, but FUTURE migrations that caused the problem. I let myself be mislead by the error message

Detected applied migration not resolved locally: [...]
If you removed this migration intentionally, run repair to mark the migration as deleted.

Which I interpreted as talking about MISSING migrations (due to the "not resolved locally").

@Barry-RG
Copy link
Contributor

Thank you for your issue. I'm not sure why the documentation is out of sync. However, from the latest release 10.12.0, these features have been made available at the open source edition.
https://documentation.red-gate.com/flyway/release-notes-and-older-versions/release-notes-for-flyway-engine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants