In sqitch there is the ADD command to add a new migration. Is there any command to remove that ADDITION?
Is there a way to remove a migration added to sqitch?
774 views Asked by xavi12p At
1
In sqitch there is the ADD command to add a new migration. Is there any command to remove that ADDITION?
This is the way I do it:
revert the change from the database.
Remove it manually from the plan or plan files
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.