Default don't log warn for database extra columns when syncing (#2280)
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2280
This commit is contained in:
parent
068de8c0f8
commit
18f8e7a86c
2
sync.go
2
sync.go
|
@ -48,7 +48,7 @@ func (session *Session) Sync2(beans ...interface{}) error {
|
||||||
// Sync synchronize structs to database tables
|
// Sync synchronize structs to database tables
|
||||||
func (session *Session) Sync(beans ...interface{}) error {
|
func (session *Session) Sync(beans ...interface{}) error {
|
||||||
_, err := session.SyncWithOptions(SyncOptions{
|
_, err := session.SyncWithOptions(SyncOptions{
|
||||||
WarnIfDatabaseColumnMissed: true,
|
WarnIfDatabaseColumnMissed: false,
|
||||||
}, beans...)
|
}, beans...)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue