[#6372] fix comment

This commit is contained in:
홍성욱 2024-11-07 16:43:22 +09:00
parent b870cfc93b
commit 697195d4e5

View File

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