There should be an option to run the migration method without
committing any changes to the database.
There are hints that in certain circumstances an explicit commit is
required after migration or some of the changes are lost, though I
haven't finally confirmed this. While adding an explicit commit it would
be easy enough to add an explicit cancel.