console\controllers\BaseMigrateController actionRedo()

actionRedo() public method

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
public integer actionRedo ( $limit = 1 )
$limit integer

The number of migrations to be redone. Defaults to 1, meaning the last applied migration will be redone.

return integer

The status of the action execution. 0 means normal, other values mean abnormal.

throws yii\console\Exception

if the number of the steps specified is less than 1.

doc_Yii
2016-10-30 16:54:58
Comments
Leave a Comment

Please login to continue.