New! – Try automated migration testing Learn more

Flyway Documentation

Poll

Baseline Migration Prefix

Flyway Teams

Description

The file name prefix for baseline migrations.

Baseline migrations represent all migrations with version <= current baseline migration version while keeping older migrations if needed for upgrading older deployments.

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

Default

B

Usage

Commandline

./flyway -baselineMigrationPrefix="IB" info

Configuration File

flyway.baselineMigrationPrefix=IB

Environment Variable

FLYWAY_BASELINE_MIGRATION_PREFIX=IB

API

Flyway.configure()
    .baselineMigrationPrefix("IB")
    .load()

Gradle

flyway {
    baselineMigrationPrefix = 'IB'
}

Maven

<configuration>
    <baselineMigrationPrefix>IB</baselineMigrationPrefix>
</configuration>