Want more control over your database deployments? – Find out how with Carlos Robles at Redgate Summit Register now

Flyway Documentation

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>