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

This documentation is deprecated. The new documentation can now be found on documentation.red-gate.com

Poll

Undo SQL Migration Prefix

Flyway Teams

Description

The file name prefix for undo SQL migrations.

Undo SQL migrations are responsible for undoing the effects of the versioned migration with the same version.

They have the following file name structure: prefixVERSIONseparatorDESCRIPTIONsuffix, which using the defaults translates to U1.1__My_description.sql

Default

U

Usage

Commandline

./flyway -undoSqlMigrationPrefix="B" info

Configuration File

flyway.undoSqlMigrationPrefix=B

Environment Variable

FLYWAY_UNDO_SQL_MIGRATION_PREFIX=B

API

Flyway.configure()
    .undoSqlMigrationPrefix("B")
    .load()

Gradle

flyway {
    undoSqlMigrationPrefix = 'B'
}

Maven

<configuration>
    <undoSqlMigrationPrefix>B</undoSqlMigrationPrefix>
</configuration>