php - Execute next / previous migration with doctrine migrations using symfony 3 -
i know can run specific migrations using execute up / down , version number, ie
doctrine:migrations:execute yyyymmddhhmmss --down
my question - there easier way run next or previous migration without having version numbers?
ideally
doctrine:migrations:execute --down n
where n number of migrations run current in specified direction.
(same idea rake db:rollback step=n)
closest thing looking is:
doctrine:migrations:migrate prev
doctrine:migrations:migrate next
these cannot used in conjunction n though, if want more 1 need use doctrine:migrations:migrate version number want go to.
Comments
Post a Comment