mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-06-28 15:45:35 +08:00
Update command.go
This commit is contained in:
parent
78ca07b14c
commit
84c855902e
@ -34,6 +34,7 @@ func RegisterDataBase() {
|
||||
beego.Info("正在初始化数据库配置.")
|
||||
adapter := beego.AppConfig.String("db_adapter")
|
||||
orm.DefaultTimeLoc = time.Local
|
||||
orm.DefaultRowsLimit = -1
|
||||
|
||||
if strings.EqualFold(adapter, "mysql") {
|
||||
host := beego.AppConfig.String("db_host")
|
||||
|
Loading…
Reference in New Issue
Block a user