diff options
Diffstat (limited to 'models/migrations/v1_21/v279.go')
-rw-r--r-- | models/migrations/v1_21/v279.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/models/migrations/v1_21/v279.go b/models/migrations/v1_21/v279.go index 19647225c9..2abd1bbe84 100644 --- a/models/migrations/v1_21/v279.go +++ b/models/migrations/v1_21/v279.go @@ -12,5 +12,9 @@ func AddIndexToActionUserID(x *xorm.Engine) error { UserID int64 `xorm:"INDEX"` } - return x.Sync(new(Action)) + _, err := x.SyncWithOptions(xorm.SyncOptions{ + IgnoreDropIndices: true, + IgnoreConstrains: true, + }, new(Action)) + return err } |