summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-03 05:05:58 -0400
committerUnknwon <u@gogs.io>2015-09-03 05:05:58 -0400
commitb1f0f85789ca1c8467f533e0ec0f44e446383d5c (patch)
treebe6639fdfbecdeabec72c675a7732e9684b153f1 /models/models.go
parenta7ee654646e0f40834066ee0ec173aa54c235b08 (diff)
downloadgitea-b1f0f85789ca1c8467f533e0ec0f44e446383d5c.tar.gz
gitea-b1f0f85789ca1c8467f533e0ec0f44e446383d5c.zip
#1569 force InnoDB for MySQL
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go
index 9412c18dee..b446dcde16 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) {