mirror of
https://github.com/gogs/gogs.git
synced 2025-05-23 16:00:56 +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
|
||||
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…
x
Reference in New Issue
Block a user