New! – Spin up instant copies of your dev databases in the cloud for free Learn more

Flyway Documentation

Poll

Ignore Pending Migrations

Description

Ignore pending migrations when reading the schema history table. These are migrations that are available but have not yet been applied.

This can be useful for verifying that in-development migration changes don’t contain any validation-breaking changes of migrations that have already been applied to a production environment, e.g. as part of a CI/CD process, without failing because of the existence of new migration versions.

Default

false

Usage

Commandline

./flyway -ignorePendingMigrations="true" validate

Configuration File

flyway.ignorePendingMigrations=true

Environment Variable

FLYWAY_IGNORE_PENDING_MIGRATIONS=true

API

Flyway.configure()
    .ignorePendingMigrations(true)
    .load()

Gradle

flyway {
    ignorePendingMigrations = true
}

Maven

<configuration>
    <ignorePendingMigrations>true</ignorePendingMigrations>
</configuration>