Browse Source

Always refetch the migration table definition.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
587529bf94
  1. 2
      framework/yii/console/controllers/MigrateController.php

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

@ -574,7 +574,7 @@ class MigrateController extends Controller
*/ */
protected function getMigrationHistory($limit) protected function getMigrationHistory($limit)
{ {
if ($this->db->schema->getTableSchema($this->migrationTable) === null) { if ($this->db->schema->getTableSchema($this->migrationTable, true) === null) {
$this->createMigrationHistoryTable(); $this->createMigrationHistoryTable();
} }
$query = new Query; $query = new Query;

Loading…
Cancel
Save