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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -