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' => '' ],