Redgate Flyway

For PostgreSQL users - where are your DBs hosted?

Flyway Repeatable SQL Migration Prefix Setting

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

Type

String

Default

"R"

Usage

Flyway Desktop

This can't be configured via Flyway Desktop, although it will be honoured.

Command-line

./flyway -repeatableSqlMigrationPrefix="A" info

TOML Configuration File

[flyway]
repeatableSqlMigrationPrefix = "A"

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>

Didn't find what you were looking for?