migrations icon indicating copy to clipboard operation
migrations copied to clipboard

Refresh feature request

Open altaraven opened this issue 8 years ago • 5 comments

Take a look at Laravel feature:

artisan migrate:refresh --step=5

which allows to re-run e.g. last 5 migrations. It would be great to implement similar feature!

altaraven avatar Jun 21 '17 13:06 altaraven

re-run is going down and going up migrations again?

pyatnitsev avatar May 08 '19 15:05 pyatnitsev

re-run is going down and going up migrations again?

exactly

altaraven avatar May 09 '19 09:05 altaraven

I can try to create PR for this

pyatnitsev avatar May 09 '19 09:05 pyatnitsev

This would belong in doctrine/migrations if it is done. However, this is already possible by just running execute on the migrations you want to rerun. I'm hesitant to introduce many different ways to do the same thing. Maybe instead we just add an example to the documentation.

jwage avatar May 09 '19 13:05 jwage

Coming from Laravel, I was really looking for something like this, as we tend to do this pretty often when starting out on any project

mohitpanjwani avatar May 17 '19 15:05 mohitpanjwani