浏览代码

Merge pull request #3 from lifei6671/master

merge from lifei6671/mindoc
roberChen 4 年之前
父节点
当前提交
886bc8ee51
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      commands/command.go

+ 1 - 0
commands/command.go

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