1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-26 09:09:36 -05:00

Merge pull request #597 from luto/fix-mysql-engine

force the use of InnoDB as db engine for all tables
This commit is contained in:
无闻 2014-11-02 10:52:36 -05:00
commit 5b290013a9

View file

@ -129,7 +129,7 @@ func NewEngine() (err error) {
if err = SetEngine(); err != nil {
return err
}
if err = x.Sync2(tables...); err != nil {
if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil {
return fmt.Errorf("sync database struct error: %v\n", err)
}
return nil