mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 06:38:06 +02:00
Sync -> SyncWithOption
This commit is contained in:
1 parent
f4a03de9b5
commit
903c19b77f
1 file changed
+4
-1
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user