Redgate Summit – The Database DevOps Transformation Watch now
PASS Data Community Summit logo

PASS Data Community Summit

A hybrid conference in Seattle and online

15-18 November

Flyway Documentation

Poll

Clean Disabled

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.

Default

true

Usage

Commandline

./flyway -cleanDisabled="false" clean

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>