Baseline Migration Prefix
Published 31 October 2023
Baseline Migration Prefix
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
TOML Configuration File
[flyway]
baselineMigrationPrefix = "IB"
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>