This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Set MySQL rowtype to dynamic for new tables (
#10833
)
* Set mysql rowtype to dynamic for new tables * Update models.go
tags/v1.13.0-dev
Lauris BH
GitHub
6 years ago
parent
bcd8583efe
commit
26e8cda05d
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
models/models.go
+ 3
- 0
models/models.go
View File
@@ -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
}
Write
Preview
Loading…
Cancel
Save