Browse Source

Fix Issue #934

Fixes issue #934. Command is created for the selected database, not the default database.
tags/2.0.0-beta
Aaron Francis 11 years ago
parent
commit
c5a34c534b
  1. 2
      framework/yii/console/controllers/MigrateController.php

2
framework/yii/console/controllers/MigrateController.php

@ -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]);

Loading…
Cancel
Save