mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-12 06:18:12 +08:00
fix: 优化数据库默认配置
This commit is contained in:
parent
550e44b878
commit
0cf4a12711
@ -1,3 +1,6 @@
|
|||||||
|
[db]
|
||||||
|
type=sqlite
|
||||||
|
|
||||||
[mysql]
|
[mysql]
|
||||||
hostname=127.0.0.1
|
hostname=127.0.0.1
|
||||||
hostport=3306
|
hostport=3306
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
// 默认使用的数据库连接配置
|
// 默认使用的数据库连接配置
|
||||||
'default' => 'sqlite',
|
'default' => env('db.type', 'sqlite'),
|
||||||
// 自定义时间查询规则
|
// 自定义时间查询规则
|
||||||
'time_query_rule' => [],
|
'time_query_rule' => [],
|
||||||
// 自动写入时间戳字段
|
// 自动写入时间戳字段
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user