mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-02 21:50:43 +08:00
support table primary key
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user