Flyway Check Next Snapshot Setting
Published 15 January 2025
Description
A snapshot containing all migrations including those that are pending (generated via snapshot)
The location type is determined by its prefix, and will be a file path if no prefix is specified.
Filesystem
Locations starting with filesystem: (or with no prefix) point to a file path on the filesystem.
Relative paths will be resolved against your working directory.
Snapshot History table
Locations starting with snapshotHistory: point to
the snapshot history table.
They are in the format snapshotHistory:<name>.
For more information on the concept of the snapshot history table,
see Snapshots.
Type
String
Default
none
Usage
Flyway Desktop
This can't be set in a config file via Flyway Desktop, although it will be honoured, and it can be configured as an advanced parameter in operations on the Migrations page.
Command-line
./flyway check -changes -url="jdbc://url" -nextSnapshot="my_snapshot"
TOML Configuration File
[flyway.check]
nextSnapshot = "my_snapshot"
Configuration File
flyway.check.nextSnapshot=my_snapshot