diff options
author | Lauris BH <lauris@nix.lv> | 2018-07-22 06:15:11 +0300 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-07-21 23:15:11 -0400 |
commit | ae9dd239fbfc3b9f18ff2ccbdbe6fdf236db2b36 (patch) | |
tree | 91e771a71f694d5af4f7814c0e9b384aa04909fc /models | |
parent | ec43e5619b70e09750accc05ef8eac720f284f24 (diff) | |
download | gitea-ae9dd239fbfc3b9f18ff2ccbdbe6fdf236db2b36.tar.gz gitea-ae9dd239fbfc3b9f18ff2ccbdbe6fdf236db2b36.zip |
Fix migration from older releases (#4495)
Diffstat (limited to 'models')
-rw-r--r-- | models/migrations/v39.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v39.go b/models/migrations/v39.go index 42197e80f2..9fb7390c7d 100644 --- a/models/migrations/v39.go +++ b/models/migrations/v39.go @@ -34,7 +34,7 @@ func releaseAddColumnIsTagAndSyncTags(x *xorm.Engine) error { pageSize := models.RepositoryListDefaultPageSize for { repos := make([]*models.Repository, 0, pageSize) - if err := x.Table("repository").Asc("id").Limit(pageSize, offset).Find(&repos); err != nil { + if err := x.Table("repository").Cols("id", "name", "owner_id").Asc("id").Limit(pageSize, offset).Find(&repos); err != nil { return fmt.Errorf("select repos [offset: %d]: %v", offset, err) } for _, repo := range repos { |