summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-08-13 07:11:42 +0800
committerGitHub <noreply@github.com>2021-08-13 01:11:42 +0200
commit7224cfc578c1ff9f6b52ad13d18d3ca37d7f8186 (patch)
tree763e29950bed8c31caba1dc2b943da87e6810202 /models/models.go
parent5fbccad906f803c63e758ad3a168714430c9d1a9 (diff)
downloadgitea-7224cfc578c1ff9f6b52ad13d18d3ca37d7f8186.tar.gz
gitea-7224cfc578c1ff9f6b52ad13d18d3ca37d7f8186.zip
Upgrade xorm to v1.2.2 (#16663)
* Upgrade xorm to v1.2.2 * Change the Engine interface to match xorm v1.2.2
Diffstat (limited to 'models/models.go')
-rwxr-xr-xmodels/models.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go
index 378747dbce..c843302296 100755
--- a/models/models.go
+++ b/models/models.go
@@ -33,7 +33,7 @@ type Engine interface {
Table(tableNameOrBean interface{}) *xorm.Session
Count(...interface{}) (int64, error)
Decr(column string, arg ...interface{}) *xorm.Session
- Delete(interface{}) (int64, error)
+ Delete(...interface{}) (int64, error)
Exec(...interface{}) (sql.Result, error)
Find(interface{}, ...interface{}) error
Get(interface{}) (bool, error)