Skip to content

Commit

Permalink
Fix migration from older releases (#4495)
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks authored and techknowlogick committed Jul 22, 2018
1 parent ec43e56 commit ae9dd23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/migrations/v39.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ae9dd23

Please sign in to comment.