mirror of
https://gitee.com/gitea/gitea
synced 2025-11-16 06:20:24 +08:00
Use created & updated instead BeforeInsert & BeforeUpdate (#2482)
* use created & updated instead BeforeInsert & BeforeUpdate * fix vendor checksum * only show generated SQL when development mode * remove extra update column updated_unix * remove trace config
This commit is contained in:
@@ -241,6 +241,7 @@ func NewTestEngine(x *xorm.Engine) (err error) {
|
||||
|
||||
x.SetMapper(core.GonicMapper{})
|
||||
x.SetLogger(log.XORMLogger)
|
||||
x.ShowSQL(!setting.ProdMode)
|
||||
return x.StoreEngine("InnoDB").Sync2(tables...)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user