Merge pull request #1

* Fix issue with same type detection.
This commit is contained in:
ayakut 2024-03-20 19:00:09 +02:00 committed by GitHub
parent e0c3be03fb
commit 666fa4b001
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {