diff --git a/framework/yii/console/controllers/MigrateController.php b/framework/yii/console/controllers/MigrateController.php index b437450..d3eb257 100644 --- a/framework/yii/console/controllers/MigrateController.php +++ b/framework/yii/console/controllers/MigrateController.php @@ -574,7 +574,7 @@ class MigrateController extends Controller */ protected function getMigrationHistory($limit) { - if ($this->db->schema->getTableSchema($this->migrationTable) === null) { + if ($this->db->schema->getTableSchema($this->migrationTable, true) === null) { $this->createMigrationHistoryTable(); } $query = new Query;