mirror of
https://gitea.com/xorm/xorm
synced 2025-10-06 00:02:41 +02:00
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:
2
sync.go
2
sync.go
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user