Flyway Diff Target Setting
Published 15 January 2025
Description
The target to use for the diff operation.
Type
String
Valid values
"<<env>>"
- uses the environment named <<env>>"empty"
- models an empty database"schemaModel"
- the schema model folder referenced byschemaModelLocation
"migrations"
- uses a buildEnvironment to represent the state of database after specified migrations have been applied"snapshot:<<path>>"
- uses a snapshot file at the specified path
In the case where an environment shares a name with one of the other values, it can be prefixed with env:
Default
none - this is a required parameter for the diff
command
Usage
Flyway Desktop
This can't be added to a configuration file via Flyway Desktop.
Command-line
./flyway diff -source="env:development" -target="schemaModel"
TOML Configuration File
It is unlikely to be desirable to specify this in a config file, but it is possible:
[flyway.diff]
target = "schemaModel"