Skip to content

Option to validate only if all migration are applied #435

@ysfaran

Description

@ysfaran

As far as I can tell this library supports running migrations, but is there also an option to just check if all migration where applied?

I am asking because I want to integrate a step into my CI/CD pipeline, where I block merges if not all migration where applied to the search database. This step would ensure that you don't accidentally delete a migration script or add new ones without applying them and so on.

Ideally the java program should return a non-zero error code, when not all migrations where applied, which is equal to just throwing an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions