parent
e0c3be03fb
commit
666fa4b001
@ -455,7 +455,7 @@ func (m Migrator) MigrateColumn(value interface{}, field *schema.Field, columnTy
|
||||
|
||||
var (
|
||||
alterColumn bool
|
||||
isSameType = fullDataType == realDataType
|
||||
isSameType = strings.HasPrefix(fullDataType, realDataType)
|
||||
)
|
||||
|
||||
if !field.PrimaryKey {
|
||||
|
Loading…
x
Reference in New Issue
Block a user