Commit a6cb556e by Qiang Xue

Fixes #1204: the length of primary key for migration table is too long.

parent 5795522f
...@@ -594,7 +594,7 @@ class MigrateController extends Controller ...@@ -594,7 +594,7 @@ class MigrateController extends Controller
{ {
echo 'Creating migration history table "' . $this->migrationTable . '"...'; echo 'Creating migration history table "' . $this->migrationTable . '"...';
$this->db->createCommand()->createTable($this->migrationTable, [ $this->db->createCommand()->createTable($this->migrationTable, [
'version' => 'varchar(255) NOT NULL PRIMARY KEY', 'version' => 'varchar(180) NOT NULL PRIMARY KEY',
'apply_time' => 'integer', 'apply_time' => 'integer',
])->execute(); ])->execute();
$this->db->createCommand()->insert($this->migrationTable, [ $this->db->createCommand()->insert($this->migrationTable, [
......
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