Redgate Flyway

For PostgreSQL users - where are your DBs hosted?

Flyway Clean Disabled Setting

Description

Whether to disable clean. This is especially useful for production environments where running clean can be a career limiting move. Set to false to allow clean to execute.

Type

Boolean

Default

true

Usage

Flyway Desktop

This can't be set in a config file via Flyway Desktop, although it will be honored, and it can be configured as an advanced parameter in operations on the Migrations page.

This is hard-coded to true under the hood when Flyway Desktop re-provisions the shadow database.

Command-line

./flyway -cleanDisabled="false" clean

TOML Configuration File

[flyway]
cleanDisabled = false

Configuration File

flyway.cleanDisabled=false

Environment Variable

FLYWAY_CLEAN_DISABLED=false

API

Flyway.configure()
    .cleanDisabled(false)
    .load()

Gradle

flyway {
    cleanDisabled = false
}

Maven

<configuration>
    <cleanDisabled>false</cleanDisabled>
</configuration>

Didn't find what you were looking for?