Execute next / previous migration with doctrine migrations using symfony 3 Execute next / previous migration with doctrine migrations using symfony 3 symfony symfony

Execute next / previous migration with doctrine migrations using symfony 3


Closest thing to what I was looking for is:

doctrine:migrations:migrate prev

doctrine:migrations:migrate next

These cannot be used in conjunction with n though, so if you want to do more than 1 you need to use doctrine:migrations:migrate with the version number you want to go to.


i usually just call status, which shows if there any new ones. If so then I call migrate, and it runs all the new ones. See Docs here http://docs.doctrine-project.org/projects/doctrine-migrations/en/latest/reference/introduction.html