From 903c19b77f52ec13850c20c822eea2c7c35e415e Mon Sep 17 00:00:00 2001 From: pomidorry Date: Fri, 8 May 2026 21:06:27 +0300 Subject: [PATCH] Sync -> SyncWithOption --- models/migrations/v1_27/v332.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/migrations/v1_27/v332.go b/models/migrations/v1_27/v332.go index ec9320e8f6..8cf087d56e 100644 --- a/models/migrations/v1_27/v332.go +++ b/models/migrations/v1_27/v332.go @@ -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 }