forked from forgejo/forgejo
parent
050c38ca19
commit
2cd9d6b3f9
3 changed files with 7 additions and 4 deletions
|
@ -123,7 +123,10 @@ func newXORMEngine() (*xorm.Engine, error) {
|
|||
|
||||
// SyncAllTables sync the schemas of all tables, is required by unit test code
|
||||
func SyncAllTables() error {
|
||||
return x.StoreEngine("InnoDB").Sync2(tables...)
|
||||
_, err := x.StoreEngine("InnoDB").SyncWithOptions(xorm.SyncOptions{
|
||||
WarnIfDatabaseColumnMissed: true,
|
||||
}, tables...)
|
||||
return err
|
||||
}
|
||||
|
||||
// InitEngine initializes the xorm.Engine and sets it as db.DefaultContext
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue