Alternative to ignoreMissingMigrations, Clarification on ignoreMissingPatterns

Dear all,

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?
Tagged:

Best Answer

  • csternagelcsternagel Posts: 5 New member

    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").

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file