Update command.go

This commit is contained in:
ai*3 2021-03-16 12:45:12 +08:00 committed by GitHub
parent 78ca07b14c
commit 84c855902e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")