support table primary key

This commit is contained in:
SwallowGG
2023-11-06 15:47:42 +08:00
parent 9b3adb18ee
commit b9d8929fc0
3 changed files with 44 additions and 26 deletions

View File

@ -241,6 +241,9 @@ public class TableServiceImpl implements TableService {
keyIndex.setSchemaName(newTable.getSchemaName());
keyIndex.setDatabaseName(newTable.getDatabaseName());
keyIndex.setEditStatus(status);
if(!EditStatus.ADD.name().equals(status)){
keyIndex.setOldName(keyIndex.getName());
}
indexes.add(keyIndex);
}
List<TableIndexColumn> tableIndexColumns = keyIndex.getColumnList();