Sync -> SyncWithOption

This commit is contained in:
pomidorry committed 2026-05-08 21:06:27 +03:00
1 parent f4a03de9b5
commit 903c19b77f
1 file changed
+4 -1
+4 -1
View File
@@ -14,5 +14,8 @@ func (mirrorWithLastSyncUnix) TableName() string {
} }
func AddLastSyncUnixToMirror(x *xorm.Engine) error { func AddLastSyncUnixToMirror(x *xorm.Engine) error {
return x.Sync(new(mirrorWithLastSyncUnix)) _, err := x.SyncWithOptions(xorm.SyncOptions{
IgnoreDropIndices: true,
}, new(mirrorWithLastSyncUnix))
return err
} }