mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 22:00:16 +08:00
Silently auto-rename index to "PRIMARY" when index type gets set to "PRIMARY". Fixes issue #3031.
This commit is contained in:
@ -1668,7 +1668,11 @@ begin
|
||||
TblKey := FKeys[Node.Index];
|
||||
case Column of
|
||||
0: TblKey.Name := NewText;
|
||||
1: TblKey.IndexType := NewText;
|
||||
1: begin
|
||||
TblKey.IndexType := NewText;
|
||||
if NewText = PKEY then
|
||||
TblKey.Name := PKEY;
|
||||
end;
|
||||
2: TblKey.Algorithm := NewText;
|
||||
end;
|
||||
// Needs to be called manually for Name and IndexType properties:
|
||||
|
Reference in New Issue
Block a user