diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-11-03 23:47:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 23:47:54 +0800 |
commit | afb3a5c1d585f7e7d5fd7eeb07eb5053bc72a6e6 (patch) | |
tree | 1e62bd85142a87229d47d66876a0078c362dd842 /models | |
parent | fa8492fb70b493895a805d88f0d4bad38fd5404b (diff) | |
download | gitea-afb3a5c1d585f7e7d5fd7eeb07eb5053bc72a6e6.tar.gz gitea-afb3a5c1d585f7e7d5fd7eeb07eb5053bc72a6e6.zip |
Fix bug on release publisherid migrations (#13410)
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'models')
-rw-r--r-- | models/migrations/v156.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/models/migrations/v156.go b/models/migrations/v156.go index 6092a37d55..d1770b6101 100644 --- a/models/migrations/v156.go +++ b/models/migrations/v156.go @@ -68,7 +68,10 @@ func fixPublisherIDforTagReleases(x *xorm.Engine) error { return err } - if err := sess.Limit(batchSize, start).Asc("repo_id", "id").Where("is_tag=?", true).Find(&releases); err != nil { + if err := sess.Limit(batchSize, start). + Where("publisher_id = 0"). + Asc("repo_id", "id").Where("is_tag=?", true). + Find(&releases); err != nil { return err } |