mirror of
https://github.com/gogs/gogs.git
synced 2025-05-24 00:12:26 +00:00
migrations/v16: sync table
This commit is contained in:
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…
x
Reference in New Issue
Block a user