mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Move database settings from models to setting (#7806)
* move database settings from models to setting * update docs * fix checkout pr * fix tests * fix lint * remove unsupported tidb options * correct wrong variable name * remove tidb totally
This commit is contained in:
committed by
Antoine GIRARD
parent
26af3401c3
commit
f83db078f0
@@ -80,7 +80,7 @@ func removeStaleWatches(x *xorm.Engine) error {
|
||||
}
|
||||
|
||||
repoCache := make(map[int64]*Repository)
|
||||
err := sess.BufferSize(setting.IterateBufferSize).Iterate(new(Watch),
|
||||
err := sess.BufferSize(setting.Database.IterateBufferSize).Iterate(new(Watch),
|
||||
func(idx int, bean interface{}) error {
|
||||
watch := bean.(*Watch)
|
||||
|
||||
@@ -117,7 +117,7 @@ func removeStaleWatches(x *xorm.Engine) error {
|
||||
}
|
||||
|
||||
repoCache = make(map[int64]*Repository)
|
||||
err = sess.BufferSize(setting.IterateBufferSize).
|
||||
err = sess.BufferSize(setting.Database.IterateBufferSize).
|
||||
Distinct("issue_watch.user_id", "issue.repo_id").
|
||||
Join("INNER", "issue", "issue_watch.issue_id = issue.id").
|
||||
Where("issue_watch.is_watching = ?", true).
|
||||
|
Reference in New Issue
Block a user