Skip to content

Commit

Permalink
force the use of InnoDB as db engine for all tables, fixes gogs#59
Browse files Browse the repository at this point in the history
  • Loading branch information
luto committed Oct 28, 2014
1 parent c7f56d7 commit bff1e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/models.go
Expand Up @@ -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
Expand Down

0 comments on commit bff1e15

Please sign in to comment.