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

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

BaselineMigrationConfigurationExtension baselineMigrationConfigurationExtension = configuration.getPluginRegister().getPlugin(BaselineMigrationConfigurationExtension.class)
baselineMigrationConfigurationExtension.setBaselineMigrationPrefix("IB");

Gradle

flyway {
    pluginConfiguration [
      baselineMigrationPrefix: 'IB'
    ]
}

Maven

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