diff options
-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 { |