A few table designer fixes (#1581)

* enable index rename

* use SystemName to fix constraint name validator
This commit is contained in:
Hai Cao
2022-07-21 16:25:35 -07:00
committed by GitHub
parent 887b23e9a1
commit fc2d1300fd
2 changed files with 9 additions and 11 deletions

View File

@@ -904,7 +904,6 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner
{
var indexVM = new IndexViewModel();
indexVM.Name.Value = index.Name;
indexVM.Name.Enabled = tableInfo.IsNewTable; // renaming an index is not supported, it will cause a new index to be created.
indexVM.Description.Value = index.Description;
indexVM.Description.Enabled = index.CanEditDescription;
indexVM.IsClustered.Checked = index.IsClustered;