From 4f08b6e8ae62d318cfa981a3c3af95ccfcf719c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E6=AD=A3=E6=B5=B7?= Date: Wed, 18 Jul 2018 14:07:04 +0800 Subject: [PATCH] Update m171214_101829_create_action_store_table.php --- src/migrations/m171214_101829_create_action_store_table.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/migrations/m171214_101829_create_action_store_table.php b/src/migrations/m171214_101829_create_action_store_table.php index 6c8b53d..9ba02b7 100644 --- a/src/migrations/m171214_101829_create_action_store_table.php +++ b/src/migrations/m171214_101829_create_action_store_table.php @@ -19,11 +19,11 @@ public function up() { $this->createTable($this->tableName, [ 'id' => $this->primaryKey(), - 'type' => $this->string()->notNull(), + 'type' => $this->string(20)->notNull(), 'value' => $this->integer()->defaultValue(1), - 'user_type' => $this->string()->defaultValue('user'), + 'user_type' => $this->string(20)->defaultValue('user'), 'user_id' => $this->integer()->notNull(), - 'model' => $this->string()->notNull(), + 'model' => $this->string(20)->notNull(), 'model_id' => $this->integer()->notNull(), 'created_at' => $this->integer()->defaultValue(null), 'updated_at' => $this->integer()->defaultValue(null),