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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -