From 00ea7cecb37a1c18e57e36ee36ffac31d2afcec9 Mon Sep 17 00:00:00 2001 From: Vincent Date: Mon, 18 Nov 2013 12:36:18 +0100 Subject: [PATCH] apply_time is a timestamp, so I propose using an unsigned int --- 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 0e369119b19..333d7b4acdd 100644 --- a/framework/yii/console/controllers/MigrateController.php +++ b/framework/yii/console/controllers/MigrateController.php @@ -595,7 +595,7 @@ protected function createMigrationHistoryTable() echo 'Creating migration history table "' . $this->migrationTable . '"...'; $this->db->createCommand()->createTable($this->migrationTable, [ 'version' => 'varchar(180) NOT NULL PRIMARY KEY', - 'apply_time' => 'integer', + 'apply_time' => 'integer UNSIGNED', ])->execute(); $this->db->createCommand()->insert($this->migrationTable, [ 'version' => self::BASE_MIGRATION,