diff options
author | luto <m@luto.at> | 2014-10-28 16:40:09 +0100 |
---|---|---|
committer | luto <m@luto.at> | 2014-10-28 16:40:09 +0100 |
commit | bff1e157d556a9b39ddf3c1b617c2795c01a4d81 (patch) | |
tree | 1ed3b4799dc95642890be2f543ab2b5452018a16 /models | |
parent | c7f56d7483f403f66a3bf849f6dbe5e460719248 (diff) | |
download | gitea-bff1e157d556a9b39ddf3c1b617c2795c01a4d81.tar.gz gitea-bff1e157d556a9b39ddf3c1b617c2795c01a4d81.zip |
force the use of InnoDB as db engine for all tables, fixes #59
Diffstat (limited to 'models')
-rw-r--r-- | models/models.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go index 46716728b0..b4f5f0a2db 100644 --- a/models/models.go +++ b/models/models.go @@ -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 |