From f42da7869e603d9152d2f95b2cb631dd75771786 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Mon, 20 Jan 2025 11:45:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=99=BB=E6=97=A5=E5=BF=97=E8=A1=A8=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/20241230060309_create_sys_user_login_log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/20241230060309_create_sys_user_login_log.php b/database/migrations/20241230060309_create_sys_user_login_log.php index 839c519a..e8eab1e6 100644 --- a/database/migrations/20241230060309_create_sys_user_login_log.php +++ b/database/migrations/20241230060309_create_sys_user_login_log.php @@ -30,7 +30,7 @@ class CreateSysUserLoginLog extends Migrator { $table = $this->table('sys_user_login_log', ['engine' => 'MyISAM', 'comment' => '系统用户登录日志表']); $table->addColumn('user_id', 'integer', ['null' => false, 'comment' => '用户ID']) - ->addColumn('ip', 'integer', ['limit' => 10, 'null' => false, 'comment' => '登录IP']) + ->addColumn('ip', 'integer', ['limit' => 11, 'signed' => false, 'null' => false, 'comment' => '登录IP']) ->addColumn('user_agent', 'string', ['limit' => 255, 'null' => false, 'comment' => '登录设备UA信息']) ->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间']) ->create();