In Yii 1.1 - to redo just one historic migration you need a few steps.
- Make a note of the full name of the latest migration you have run (the last displayed in your migrations table) and the full name of the migration you want to run again:
m210905_112345_to_run_again
m210906_125400_latest_one
Go back in time:
yiic migrate mark m210905_112345_to_run_again
Run that one migration again
yiic migrate redo 1
Go forward in time to latest
yii migrate mark m210906_125400_latest_one
For Yii 2 it should be (although I haven't tested this set of commands):
Go back in time:
yiic migrate/mark m210905_112345_to_run_again
Run that one migration again
yiic migrate/redo 1
Go forward in time to latest
yii migrate/mark m210906_125400_latest_one