mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-02 21:50:43 +08:00
support table online edit
This commit is contained in:
@ -104,6 +104,6 @@ public enum MysqlIndexTypeEnum {
|
||||
if (MysqlIndexTypeEnum.PRIMARY_KEY.getName().equals(tableIndex.getType())) {
|
||||
return StringUtils.join("DROP PRIMARY KEY");
|
||||
}
|
||||
return StringUtils.join("DROP KEY `", tableIndex.getName());
|
||||
return StringUtils.join("DROP KEY `", tableIndex.getOldName());
|
||||
}
|
||||
}
|
||||
|
@ -19,6 +19,8 @@ import lombok.experimental.SuperBuilder;
|
||||
@AllArgsConstructor
|
||||
public class TableIndex {
|
||||
|
||||
private String oldName;
|
||||
|
||||
/**
|
||||
* 索引名称
|
||||
*/
|
||||
|
Reference in New Issue
Block a user