Default don't log warn for database extra columns when syncing

This commit is contained in:
Lunny Xiao 2023-06-23 22:13:16 +08:00
parent 068de8c0f8
commit b73d027f49
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
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
func (session *Session) Sync(beans ...interface{}) error {
_, err := session.SyncWithOptions(SyncOptions{
WarnIfDatabaseColumnMissed: true,
WarnIfDatabaseColumnMissed: false,
}, beans...)
return err
}