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

Flyway Documentation

Clean Disabled

Description

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

Default

false

Usage

Commandline

./flyway -cleanDisabled="true" clean

Configuration File

flyway.cleanDisabled=true

Environment Variable

FLYWAY_CLEAN_DISABLED=true

API

Flyway.configure()
    .cleanDisabled(true)
    .load()

Gradle

flyway {
    cleanDisabled = true
}

Maven

<configuration>
    <cleanDisabled>true</cleanDisabled>
</configuration>