diff --git a/migrator/migrator.go b/migrator/migrator.go index 7bdfa448..cec4e30f 100644 --- a/migrator/migrator.go +++ b/migrator/migrator.go @@ -524,7 +524,7 @@ func (m Migrator) MigrateColumn(value interface{}, field *schema.Field, columnTy // check nullable if nullable, ok := columnType.Nullable(); ok && nullable == field.NotNull { - // not primary key & database is nullable + // not primary key & current database is non-nullable(to be nullable) if !field.PrimaryKey && !nullable { alterColumn = true }