Skip to content

Commit

Permalink
Merge pull request yiisoft#8001 from gonimar/patch-17
Browse files Browse the repository at this point in the history
Fix migrate/down order
  • Loading branch information
samdark committed Apr 7, 2015
2 parents af67f3b + 3872c6c commit 8805db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/console/controllers/MigrateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected function getMigrationHistory($limit)
$query = new Query;
$rows = $query->select(['version', 'apply_time'])
->from($this->migrationTable)
->orderBy('apply_time DESC')
->orderBy('apply_time DESC, version DESC')
->limit($limit)
->createCommand($this->db)
->queryAll();
Expand Down

0 comments on commit 8805db1

Please sign in to comment.