mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 05:36:19 +01:00
Fix migration from older releases (#4495)
This commit is contained in:
parent
ec43e5619b
commit
ae9dd239fb
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ func releaseAddColumnIsTagAndSyncTags(x *xorm.Engine) error {
|
||||||
pageSize := models.RepositoryListDefaultPageSize
|
pageSize := models.RepositoryListDefaultPageSize
|
||||||
for {
|
for {
|
||||||
repos := make([]*models.Repository, 0, pageSize)
|
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)
|
return fmt.Errorf("select repos [offset: %d]: %v", offset, err)
|
||||||
}
|
}
|
||||||
for _, repo := range repos {
|
for _, repo := range repos {
|
||||||
|
|
Loading…
Reference in a new issue