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

Repeatable SQL Migration Prefix

Description

The file name prefix for repeatable SQL migrations.

Repeatable SQL migrations have the following file name structure: prefixSeparatorDESCRIPTIONsuffix, which using the defaults translates to R__My_description.sql

Default

R

Usage

Commandline

./flyway -repeatableSqlMigrationPrefix="A" info

Configuration File

flyway.repeatableSqlMigrationPrefix=A

Environment Variable

FLYWAY_REPEATABLE_SQL_MIGRATION_PREFIX=A

API

Flyway.configure()
    .repeatableSqlMigrationPrefix("A")
    .load()

Gradle

flyway {
    repeatableSqlMigrationPrefix = 'A'
}

Maven

<configuration>
    <repeatableSqlMigrationPrefix>A</repeatableSqlMigrationPrefix>
</configuration>