diff --git a/models/models.go b/models/models.go index 9412c18dee9f..b446dcde168f 100644 --- a/models/models.go +++ b/models/models.go @@ -156,7 +156,7 @@ func NewTestEngine(x *xorm.Engine) (err error) { } x.SetMapper(core.GonicMapper{}) - return x.Sync(tables...) + return x.StoreEngine("InnoDB").Sync2(tables...) } func SetEngine() (err error) {