Tutorial - Resolve drift by reverting it
Published 05 January 2026
Pre-requisites
- Check for drift - if drift is detected, scripts to help with drift resolution will be generated in the
drift-resolutionfolder under your working directory. The working directory can be specified explicitly and will otherwise be the command-line current working directory.
Commands to run
If your target environment, here with id production, is defined in your toml configuration execute the revert script using the deploy command
flyway deploy -scriptFilename="drift-resolution/revertDrift.sql" -environment=production
Related command reference
Pre-requisites
- Check for drift - if drift is detected, scripts to help with drift resolution will be generated in the
drift-resolutionfolder under your project directory.
Run command
It isn't currently possible to run the deploy command with custom arguments from Flyway Desktop. Navigate to the command line, and follow the instructions for the command-line.