From a6cb556e2180d4b89d50bc1205d80bc01ae2aec3 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 16 Nov 2013 16:42:03 -0500 Subject: [PATCH] Fixes #1204: the length of primary key for migration table is too long. --- framework/yii/console/controllers/MigrateController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/console/controllers/MigrateController.php b/framework/yii/console/controllers/MigrateController.php index ac941a4..0e36911 100644 --- a/framework/yii/console/controllers/MigrateController.php +++ b/framework/yii/console/controllers/MigrateController.php @@ -594,7 +594,7 @@ class MigrateController extends Controller { echo 'Creating migration history table "' . $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', ])->execute(); $this->db->createCommand()->insert($this->migrationTable, [