From 35a9ecbc822b6f2d380beb9f6cacbfdf6a7fd776 Mon Sep 17 00:00:00 2001 From: wuyanwen Date: Fri, 6 Mar 2020 17:06:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ipv6=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Index.php | 10 ++++++++++ app/admin/route/index.php | 10 ++++++++++ .../user/database/migrations/20191128114204_users.php | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 app/admin/controller/Index.php create mode 100644 app/admin/route/index.php diff --git a/app/admin/controller/Index.php b/app/admin/controller/Index.php new file mode 100644 index 0000000..448da88 --- /dev/null +++ b/app/admin/controller/Index.php @@ -0,0 +1,10 @@ + + * @copyright By CatchAdmin + * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt + */ diff --git a/app/admin/route/index.php b/app/admin/route/index.php new file mode 100644 index 0000000..d0d1e02 --- /dev/null +++ b/app/admin/route/index.php @@ -0,0 +1,10 @@ + + * @copyright By CatchAdmin + * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt + */ diff --git a/catch/user/database/migrations/20191128114204_users.php b/catch/user/database/migrations/20191128114204_users.php index 5603290..ba6a2a6 100644 --- a/catch/user/database/migrations/20191128114204_users.php +++ b/catch/user/database/migrations/20191128114204_users.php @@ -35,7 +35,7 @@ class Users extends Migrator ->addColumn('creator_id', 'integer',['default' => 0, 'comment'=>'创建人ID']) ->addColumn('department_id', 'integer',['default' => 0, 'comment'=>'部门ID']) ->addColumn('status', 'boolean',array('limit' => 1,'default'=> 1,'comment'=>'用户状态 1 正常 2 禁用')) - ->addColumn('last_login_ip', 'string',array('limit' => 30,'default'=>0,'comment'=>'最后登录IP')) + ->addColumn('last_login_ip', 'string',array('limit' => 50,'default'=>0,'comment'=>'最后登录IP')) ->addColumn('last_login_time', 'integer',array('default'=>0,'comment'=>'最后登录时间', 'signed' => false)) ->addColumn('created_at', 'integer', array('default'=>0,'comment'=>'创建时间', 'signed' => false )) ->addColumn('updated_at', 'integer', array('default'=>0,'comment'=>'更新时间', 'signed' => false))