mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 04:48:10 +08:00
fix: 更新初始化数据库配置
This commit is contained in:
parent
af7ef9b2cb
commit
355615660e
@ -17,6 +17,7 @@
|
||||
"plugin": {
|
||||
"copy": {
|
||||
"stc/think": "!think",
|
||||
"stc/.env.example": ".env.example",
|
||||
"stc/public/index.php": "!public/index.php",
|
||||
"stc/public/static/plugs": "!public/static/plugs",
|
||||
"stc/public/static/theme": "!public/static/theme",
|
||||
|
||||
@ -40,10 +40,10 @@ return [
|
||||
'hostport' => env('db.mysql_hostport', '3306'),
|
||||
// 数据库连接参数
|
||||
'params' => [],
|
||||
// 数据库编码默认采用 utf8
|
||||
'charset' => env('mysql.charset', 'utf8mb4'),
|
||||
// 数据库表前缀
|
||||
'prefix' => env('mysql.prefix', ''),
|
||||
'prefix' => env('db.mysql_prefix', ''),
|
||||
// 数据库编码默认采用 utf8mb4
|
||||
'charset' => env('db.mysql_charset', 'utf8mb4'),
|
||||
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
|
||||
'deploy' => 0,
|
||||
// 数据库读写是否分离 主从式有效
|
||||
@ -62,11 +62,12 @@ return [
|
||||
'fields_cache' => isOnline(),
|
||||
],
|
||||
'sqlite' => [
|
||||
'charset' => 'utf8',
|
||||
// 数据库类型
|
||||
'type' => 'sqlite',
|
||||
// 数据库文件
|
||||
'database' => syspath('database/sqlite.db'),
|
||||
// 数据库编码默认采用 utf8
|
||||
'charset' => 'utf8',
|
||||
// 监听执行日志
|
||||
'trigger_sql' => true,
|
||||
// 其他参数字段
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user