console\controllers\BaseMigrateController actionUp()

actionUp() public method

Upgrades the application by applying new migrations.

For example,

yii migrate     # apply all new migrations
yii migrate 3   # apply the first 3 new migrations
public integer actionUp ( $limit = 0 )
$limit integer

The number of new migrations to be applied. If 0, it means applying all available new migrations.

return integer

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

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

Please login to continue.