Flyway Snapshot Source Setting
Published 15 January 2025
Description
The source from which a snapshot should be generated.
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
In the case where an environment shares a name with one of the other values, it can be prefixed with env:
Default
Falls back to the current environment
Usage
Flyway Desktop
This can't be added to a configuration file via Flyway Desktop.
Command-line
./flyway snapshot -source="production"
TOML Configuration File
[flyway.snapshot]
source = "production"