summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/models.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index 08c7780317..d2872422e3 100644
--- a/models/models.go
+++ b/models/models.go
@@ -142,6 +142,9 @@ func getEngine() (*xorm.Engine, error) {
if err != nil {
return nil, err
}
+ if setting.Database.Type == "mysql" {
+ engine.Dialect().SetParams(map[string]string{"rowFormat": "DYNAMIC"})
+ }
engine.SetSchema(setting.Database.Schema)
return engine, nil
}