mirror of https://github.com/gogs/gogs.git
migrations/v16: sync table
parent
bb19bb601e
commit
a34c21cde3
|
@ -28,6 +28,9 @@ func updateRepositorySizes(x *xorm.Engine) (err error) {
|
||||||
ID int64
|
ID int64
|
||||||
Name string
|
Name string
|
||||||
}
|
}
|
||||||
|
if err = x.Sync2(new(Repository)); err != nil {
|
||||||
|
return fmt.Errorf("Sync2: %v", err)
|
||||||
|
}
|
||||||
return x.Where("id > 0").Iterate(new(Repository),
|
return x.Where("id > 0").Iterate(new(Repository),
|
||||||
func(idx int, bean interface{}) error {
|
func(idx int, bean interface{}) error {
|
||||||
repo := bean.(*Repository)
|
repo := bean.(*Repository)
|
||||||
|
|
Loading…
Reference in New Issue