Test Setup Failed
Push — master ( d08cbe...9ac4e0 )
by Xu
38:05
created
src/notifications/migrations/m180410_092555_create_notification_table.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
         }
25 25
         // https://segmentfault.com/q/1010000000672529/a-1020000000679702
26 26
         $this->createTable($this->tableName, [
27
-            'id' => $this->bigPrimaryKey()->unsigned()->comment('Id'),//通知ID
28
-            'user_id' => $this->unsignedInteger()->comment('User Id'),//接收器
29
-            'verb' => $this->string(32)->comment('Verb'),//活动图片
30
-            'template' => $this->string()->comment('Template'),//通知类型
31
-            'is_read' => $this->boolean()->defaultValue(false)->comment('Read'),//是否已读
32
-            'is_pending' => $this->boolean()->defaultValue(false)->comment('Pending'),//是否已经推送
33
-            'entity' => $this->unsignedInteger()->comment('Entity'),//任务对象
34
-            'publish_at' => $this->integer()->unsigned()->notNull()->comment('Publish At'),//发送时间
27
+            'id' => $this->bigPrimaryKey()->unsigned()->comment('Id'), //通知ID
28
+            'user_id' => $this->unsignedInteger()->comment('User Id'), //接收器
29
+            'verb' => $this->string(32)->comment('Verb'), //活动图片
30
+            'template' => $this->string()->comment('Template'), //通知类型
31
+            'is_read' => $this->boolean()->defaultValue(false)->comment('Read'), //是否已读
32
+            'is_pending' => $this->boolean()->defaultValue(false)->comment('Pending'), //是否已经推送
33
+            'entity' => $this->unsignedInteger()->comment('Entity'), //任务对象
34
+            'publish_at' => $this->integer()->unsigned()->notNull()->comment('Publish At'), //发送时间
35 35
         ], $tableOptions);
36 36
 
37 37
         $this->createIndex('notification_index', $this->tableName, ['sender_id', 'sender_class']);
Please login to merge, or discard this patch.