related to #286. remove CreatedAt field from generated Update SQL
This commit is contained in:
parent
84954e6779
commit
256dbd7142
@ -52,6 +52,9 @@ func Update(scope *Scope) {
|
||||
if field.DefaultValue != nil && field.IsBlank {
|
||||
continue
|
||||
}
|
||||
if field.Name == "CreatedAt" {
|
||||
continue
|
||||
}
|
||||
sqls = append(sqls, fmt.Sprintf("%v = %v", scope.Quote(field.DBName), scope.AddToVars(field.Field.Interface())))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user