console\controllers\BaseMigrateController actionHistory()

actionHistory() public method

Displays the migration history.

This command will show the list of migrations that have been applied so far. For example,

yii migrate/history     # showing the last 10 migrations
yii migrate/history 5   # showing the last 5 migrations
yii migrate/history all # showing the whole history
public void actionHistory ( $limit = 10 )
$limit integer

The maximum number of migrations to be displayed. If it is "all", the whole migration history will be displayed.

throws yii\console\Exception

if invalid limit value passed

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

Please login to continue.