Flyway Undo Save Snapshot Setting
Published 11 November 2025
Description
Takes a snapshot of the target database on
undo success and stores it. The resulting snapshot will be stored in
the snapshot history table
in the target database by default, although this can be configured using
snapshot.filename.
This setting is equivalent to running the snapshot command after the current undo command.
Type
Boolean
Default
false
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 undo -saveSnapshot=true
TOML Configuration File
This would usually be set over the command-line. It can be set in the toml, although it would apply to all environments which might not be desirable.
[flyway.undo]
saveSnapshot = true