From 024b60a1cfdad541fe4e77aca9a0499e28eaf741 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Fri, 11 Apr 2025 14:45:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9migration?= =?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 e8eab1e6..873b9ece 100644 --- a/database/migrations/20241230060309_create_sys_user_login_log.php +++ b/database/migrations/20241230060309_create_sys_user_login_log.php @@ -31,7 +31,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' => 11, 'signed' => false, 'null' => false, 'comment' => '登录IP']) - ->addColumn('user_agent', 'string', ['limit' => 255, 'null' => false, 'comment' => '登录设备UA信息']) + ->addColumn('user_agent', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '登录设备UA信息']) ->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间']) ->create(); }