Run single migration (not newest) in Yii

I have several migration files. How can I start a single migration up or down if this migration is not the newest, but some steps in the history of migration?

When yiic migrate up 1 starts, the last migration is performed. Running the migration command using the migration parameter as the parameter also does not help.

+7
yii yii-components
source share
1 answer

Please check the redoing-migrations documentation section:

 yiic migrate redo [step] 

If you want to undo / redo just one specific migration in your migration history. You must change your migration history :

 yiic migrate mark 101129_185401 yiic migrate redo 
+8
source share

All Articles