public function actionRedo($limit = 1)
    {
        if (is_numeric($limit) || $limit === 'all') {
            return parent::actionRedo($limit);
        } else {
            return $this->actionPartialRedo($limit);
        }
    }
public function actionRedo($limit = 1)
    {
        if (is_numeric($limit) || $limit === 'all') {
            return parent::actionRedo($limit);
        } else {
            return $this->actionPartialRedo($limit);
        }
    }
public function actionRedo ( $ limit = 1 ) { if ( is_numeric ( $ limit ) || $ limit === 'all' ) { return parent :: actionRedo ( $ limit ) ; } else { return $ this -> actionPartialRedo ( $ limit ) ; } }
Redoes the last few migrations.

This command will first revert the specified migrations, and then apply
them again. For example,

```
yii migrate/redo     # redo the last applied migration
yii migrate/redo 3   # redo the last 3 applied migrations
yii migrate/redo all # redo all migrations
yii migrate/redo 101129_185401                      # redo specific migration
yii migrate/redo m101129_185401_create_user_table   # using full name
```

@param integer $limit the number of migrations or specific version to be redone. Defaults to 1,
meaning the last applied migration will be redone.
@throws Exception if the number of the steps specified is less than 1.

@return integer the status of the action execution. 0 means normal, other values mean abnormal.
Redoes the last few migrations .