我们正在将我们的项目从v1更新到v2。当我们试图通过只提供已更改的字段作为结构来更新行时,它尝试设置created_at列并返回一个错误。这是在v1工作的时候。根据文档,在更新操作期间,具有默认值的字段将被忽略。:“0000-00-00”
type Model struct {
ID int `gorm:"primary_key,type:INT;not null;AUTO
(sql: Scan error on column index 1: unsupported Scan, storing driver.Value type []uint8 into type *time.Time)type Timeline struct {Timestamp *time.Time `json:"timestamp"`CREATE TABL