Is there a way to remove a migration added to sqitch?

774 Views Asked by At

In sqitch there is the ADD command to add a new migration. Is there any command to remove that ADDITION?

1

There are 1 best solutions below

0
Adrian Klaver On

This is the way I do it:

  1. revert the change from the database.

  2. Remove it manually from the plan or plan files

  3. Remove manually the scripts in deploy/, verify/ and revert/

My cases have been simple, so the above works without issue. I could see complications if the change you are trying to remove is required by other changes down stream. In that situation or as alternative to above I would look at creating a change that reverses the effect of the change you are trying to undo.