Flyway Prepare Undo Filename Setting
Published 17 September 2025
Description
The path to the undo script which can revert the changes that will be deployed by the deployment script.
Note that when undoing a state based deployment, the undo script will revert the schema and static data changes but there may be a risk of data loss if some of the schema changes are destructive.
Type
String
Default
deployments/DU__undo.sql
Usage
Flyway Desktop
This can't be added to a configuration file via Flyway Desktop.
Command-line
./flyway prepare -undoFilename="undo.sql"
TOML Configuration File
[flyway.prepare]
undoFilename = "undo.sql"