Issue #1110 that caused comments to be lost after modifying the order.

This commit is contained in:
Suyue
2024-02-02 15:11:55 +08:00
parent 0864fedb47
commit b4d49f2484

View File

@ -327,6 +327,9 @@ public enum MysqlColumnTypeEnum implements ColumnBuilder {
script.append("`").append(column.getName()).append("`").append(" ");
script.append(buildDataType(column, type)).append(" ");
if (StringUtils.isNoneBlank(column.getComment())) {
script.append("COMMENT").append(" ").append("'").append(column.getComment()).append("'").append(" ");
}
return script.toString();
}