mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix ALTER code for modified index names, and added + deleted indexes. Fixes issue #1533.
This commit is contained in:
@ -3103,6 +3103,7 @@ begin
|
||||
Key := TTableKey.Create;
|
||||
Keys.Add(Key);
|
||||
Key.Name := rx.Match[4];
|
||||
Key.OldName := Key.Name;
|
||||
Key.IndexType := rx.Match[2];
|
||||
if Key.Name = '' then Key.Name := rx.Match[2]; // PRIMARY
|
||||
if Key.IndexType = '' then Key.IndexType := 'KEY'; // KEY
|
||||
|
Reference in New Issue
Block a user