Browse Source

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

pull/594/head
luto 10 years ago
parent
commit
bff1e157d5
  1. 2
      models/models.go

2
models/models.go

@ -129,7 +129,7 @@ func NewEngine() (err error) {
if err = SetEngine(); err != nil { if err = SetEngine(); err != nil {
return err 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 fmt.Errorf("sync database struct error: %v\n", err)
} }
return nil return nil

Loading…
Cancel
Save