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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -