Back to Flyway

Flyway Skip Executing Migrations Setting

documentation/Reference/Configuration/Flyway Namespace/Flyway Skip Executing Migrations Setting.md

latest1.9 KB
Original Source

Description

Whether Flyway should skip migration execution. The remainder of the operation will run as normal - including updating the schema history table, callbacks, etc.

skipExecutingMigrations essentially allows you to mimic a migration being executed, because the schema history table is still updated as normal.

skipExecutingMigrations can be used to bring an out-of-process change into Flyway's change control process. For instance, a script run against the database outside of Flyway (like a hotfix) can be turned into a migration. The hotfix migration can be deployed with Flyway with skipExecutingMigrations=true. The schema history table will be updated with the new migration, but the script itself won't be executed again.

skipExecutingMigrations can be used with cherryPick to skip specific migrations.

Type

Boolean

Default

false

Usage

Flyway Desktop

This can be configured as an advanced parameter in operations on the Migrations page.

Command-line

bash
./flyway -skipExecutingMigrations="true" migrate

TOML Configuration File

toml
[flyway]
skipExecutingMigrations = true

Configuration File

properties
flyway.skipExecutingMigrations=true

Environment Variable

properties
FLYWAY_SKIP_EXECUTING_MIGRATIONS=true

API

java
Flyway.configure()
    .skipExecutingMigrations(true)
    .load()

Gradle

groovy
flyway {
    skipExecutingMigrations = true
}

Maven

xml
<configuration>
    <skipExecutingMigrations>true</skipExecutingMigrations>
</configuration>

See the following article for additional information on skipExecutingMigrations along with examples and use cases.