修改log字段

This commit is contained in:
JaguarJack 2019-01-17 18:28:23 +08:00
parent bfc4904379
commit df987f7a78
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/1/17
* Time: 18:06
*/

View File

@ -0,0 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/1/17
* Time: 18:09
*/

View File

@ -0,0 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/1/17
* Time: 18:06
*/

View File

@ -37,6 +37,7 @@ class Log extends Migrator
->addColumn('controller', 'string',['limit' => 20, 'default'=>'','comment'=>'控制器']) ->addColumn('controller', 'string',['limit' => 20, 'default'=>'','comment'=>'控制器'])
->addColumn('action', 'string',['limit' => 20, 'default'=>'','comment'=>'方法']) ->addColumn('action', 'string',['limit' => 20, 'default'=>'','comment'=>'方法'])
->addColumn('option', 'string',['limit' => 50, 'default'=>'','comment'=>'操作']) ->addColumn('option', 'string',['limit' => 50, 'default'=>'','comment'=>'操作'])
->addColumn('method', 'string',['limit' => 15, 'default'=>'','comment'=>'请求方法'])
->addColumn('created_at', 'timestamp', [ 'default' => 'CURRENT_TIMESTAMP','comment' => '更新时间']) ->addColumn('created_at', 'timestamp', [ 'default' => 'CURRENT_TIMESTAMP','comment' => '更新时间'])
->create(); ->create();
} }