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