0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-13 19:45:47 +02:00

Sync -> SyncWithOption

This commit is contained in:
pomidorry 2026-05-08 21:06:27 +03:00
parent f4a03de9b5
commit 903c19b77f

View File

@ -14,5 +14,8 @@ func (mirrorWithLastSyncUnix) TableName() string {
}
func AddLastSyncUnixToMirror(x *xorm.Engine) error {
return x.Sync(new(mirrorWithLastSyncUnix))
_, err := x.SyncWithOptions(xorm.SyncOptions{
IgnoreDropIndices: true,
}, new(mirrorWithLastSyncUnix))
return err
}