mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 10:43:06 +08:00
fix:771 修复Mysql修改表结构时,tinyint类型不能设置长度问题
This commit is contained in:
@ -15,7 +15,7 @@ public enum MysqlColumnTypeEnum implements ColumnBuilder {
|
||||
|
||||
BIT("BIT", true, false, true, false, false, false, true, true, false, false),
|
||||
|
||||
TINYINT("TINYINT", false, false, true, true, false, false, true, true, false, false),
|
||||
TINYINT("TINYINT", true, false, true, true, false, false, true, true, false, false),
|
||||
|
||||
TINYINT_UNSIGNED("TINYINT UNSIGNED", false, false, true, true, false, false, true, true, false, false),
|
||||
|
||||
@ -271,7 +271,7 @@ public enum MysqlColumnTypeEnum implements ColumnBuilder {
|
||||
return StringUtils.join(columnType, "(", column.getColumnSize(), ")");
|
||||
}
|
||||
|
||||
if (BIT.equals(type)) {
|
||||
if (Arrays.asList(BIT, TINYINT).contains(type)) {
|
||||
return StringUtils.join(columnType, "(", column.getColumnSize(), ")");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user