Back to Flyway

Flyway Undo Save Snapshot Setting

documentation/Reference/Configuration/Flyway Namespace/Flyway Undo Namespace/Flyway Undo Save Snapshot Setting.md

latest1.1 KB
Original Source

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

bash
./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.

toml
[flyway.undo]
saveSnapshot = true