support table online edit

This commit is contained in:
SwallowGG
2023-09-20 16:53:15 +08:00
parent e6a1772243
commit ff74862726
2 changed files with 3 additions and 1 deletions

View File

@ -104,6 +104,6 @@ public enum MysqlIndexTypeEnum {
if (MysqlIndexTypeEnum.PRIMARY_KEY.getName().equals(tableIndex.getType())) { if (MysqlIndexTypeEnum.PRIMARY_KEY.getName().equals(tableIndex.getType())) {
return StringUtils.join("DROP PRIMARY KEY"); return StringUtils.join("DROP PRIMARY KEY");
} }
return StringUtils.join("DROP KEY `", tableIndex.getName()); return StringUtils.join("DROP KEY `", tableIndex.getOldName());
} }
} }

View File

@ -19,6 +19,8 @@ import lombok.experimental.SuperBuilder;
@AllArgsConstructor @AllArgsConstructor
public class TableIndex { public class TableIndex {
private String oldName;
/** /**
* 索引名称 * 索引名称
*/ */