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:
Lunny Xiao 2023-06-23 15:00:31 +00:00
parent 068de8c0f8
commit 18f8e7a86c
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }