Flyway Prepare Target Setting
Published 15 January 2025
Description
The target environment to deploy to. Must match the id of an environment specified in environments.
Type
String
Default
- If
prepare.source
is set toschemaModel
ormigrations
, this defaults to the value of theenvironment
parameter. - Otherwise, there is no default value. It must be set when preparing from a source database, and should not be set if preparing from an 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]
target = "production"