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 }