1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-29 09:31:11 -05:00

Fix bug on release publisherid migrations (#13410)

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
This commit is contained in:
Lunny Xiao 2020-11-03 23:47:54 +08:00 committed by GitHub
parent fa8492fb70
commit afb3a5c1d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,10 @@ func fixPublisherIDforTagReleases(x *xorm.Engine) error {
return err 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 return err
} }