From b5fcde7a9a1ea183d4ccc60a2d5a7c81a37f19df Mon Sep 17 00:00:00 2001 From: lijunshi Date: Sun, 28 Apr 2024 16:46:00 +0800 Subject: [PATCH] fix:fmt --- dialects/mysql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dialects/mysql.go b/dialects/mysql.go index 9f545f42..424807d4 100644 --- a/dialects/mysql.go +++ b/dialects/mysql.go @@ -402,9 +402,9 @@ func (db *mysql) AddColumnSQL(tableName string, col *schemas.Column) string { // ModifyColumnSQL returns a SQL to modify SQL func (db *mysql) ModifyColumnSQL(tableName string, col *schemas.Column) string { s, _ := ColumnString(db.dialect, col, false, true) - /* if col.IsAutoIncrement { + if col.IsAutoIncrement { s += " " + db.AutoIncrStr() - } */ + } if col.Comment != "" { s += fmt.Sprintf(" COMMENT '%s'", col.Comment) }