Browse Source

migrations/v16: sync table

pull/4280/head
Unknwon 8 years ago
parent
commit
a34c21cde3
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 3
      models/migrations/v16.go

3
models/migrations/v16.go

@ -28,6 +28,9 @@ func updateRepositorySizes(x *xorm.Engine) (err error) {
ID int64
Name string
}
if err = x.Sync2(new(Repository)); err != nil {
return fmt.Errorf("Sync2: %v", err)
}
return x.Where("id > 0").Iterate(new(Repository),
func(idx int, bean interface{}) error {
repo := bean.(*Repository)

Loading…
Cancel
Save