1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

force the use of InnoDB as db engine for all tables, fixes #59

This commit is contained in:
luto 2014-10-28 16:40:09 +01:00
parent c7f56d7483
commit bff1e157d5

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