Commit c5a34c53 by Aaron Francis

Fix Issue #934

Fixes issue #934. Command is created for the selected database, not the default database.
parent 38c0b197
...@@ -584,7 +584,7 @@ class MigrateController extends Controller ...@@ -584,7 +584,7 @@ class MigrateController extends Controller
->from($this->migrationTable) ->from($this->migrationTable)
->orderBy('version DESC') ->orderBy('version DESC')
->limit($limit) ->limit($limit)
->createCommand() ->createCommand($this->db)
->queryAll(); ->queryAll();
$history = ArrayHelper::map($rows, 'version', 'apply_time'); $history = ArrayHelper::map($rows, 'version', 'apply_time');
unset($history[self::BASE_MIGRATION]); unset($history[self::BASE_MIGRATION]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment