From 697195d4e555366dd6f46bfe0030f7522f7a19d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=8D=EC=84=B1=EC=9A=B1?= Date: Thu, 7 Nov 2024 16:43:22 +0900 Subject: [PATCH] [#6372] fix comment --- migrator/migrator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }