mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 23:50:38 +08:00
Fixes #7924: Migrations in history are now ordered by time applied allowing to roll back in reverse order no matter how these were applied
This commit is contained in:
@@ -30,6 +30,7 @@ Yii Framework 2 Change Log
|
||||
- Enh: Added `yii\helper\Console::wrapText()` method to wrap indented text by console window width and used it in `yii help` command (cebe)
|
||||
- Enh: Implement batchInsert for oci (nineinchnick)
|
||||
- Enh: Detecting IntegrityException for oci (nineinchnick)
|
||||
- Chg #7924: Migrations in history are now ordered by time applied allowing to roll back in reverse order no matter how these were applied (samdark)
|
||||
- Chg: Updated dependency to `cebe/markdown` to version `1.1.x` (cebe)
|
||||
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ class MigrateController extends BaseMigrateController
|
||||
$query = new Query;
|
||||
$rows = $query->select(['version', 'apply_time'])
|
||||
->from($this->migrationTable)
|
||||
->orderBy('version DESC')
|
||||
->orderBy('apply_time DESC')
|
||||
->limit($limit)
|
||||
->createCommand($this->db)
|
||||
->queryAll();
|
||||
|
||||
Reference in New Issue
Block a user