From 7eef968cd32b6faffc3f56c80b8d38c2ae564351 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 1 Dec 2023 17:13:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/database.php | 2 +- config/thinkorm.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/database.php b/config/database.php index 48402ad..969e429 100644 --- a/config/database.php +++ b/config/database.php @@ -16,7 +16,7 @@ return [ 'username' => env('DB_USERNAME'), 'password' => env('DB_PASSWORD'), 'unix_socket' => '', - 'prefix' => 'la_', + 'prefix' => env('DB_PREFIX'), 'strict' => true, 'engine' => null, ], diff --git a/config/thinkorm.php b/config/thinkorm.php index 77eb1a6..4e61aae 100644 --- a/config/thinkorm.php +++ b/config/thinkorm.php @@ -19,11 +19,11 @@ return [ // 数据库编码默认采用utf8 'charset' => 'utf8', // 数据库表前缀 - 'prefix' => 'la_', + 'prefix' => env('DB_PREFIX'), // 断线重连 'break_reconnect' => true, // 关闭SQL监听日志 - 'trigger_sql' => true, + 'trigger_sql' => false, // 自定义分页类 'bootstrap' => '' ],