Flyway Prepare Source Setting
Published 15 January 2025
Description
The source to use for the prepare operation.
Type
String
Valid values
"<<env>>"
- uses the environment named <<env>>"schemaModel"
- the schema model folder referenced byschemaModelLocation
In the case where an environment shares a name with one of the other values, it can be prefixed with env:
Default
none - if prepare.source
or prepare.target
are not set the
prepare
command will run against a diff artifact
Usage
Flyway Desktop
This can't be added to a configuration file via Flyway Desktop.
Command-line
./flyway prepare -source="schemaModel" -target="production"
TOML Configuration File
[flyway.prepare]
source = "schemaModel"