mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
allow reorder of pk columns (#1703)
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<PackageReference Update="Microsoft.Data.SqlClient" Version="3.1.1" />
|
||||
<PackageReference Update="Microsoft.SqlServer.SqlManagementObjects" Version="161.47021.0" />
|
||||
<PackageReference Update="Microsoft.SqlServer.Management.SmoMetadataProvider" Version="161.47008.0" />
|
||||
<PackageReference Update="Microsoft.SqlServer.DACFx" Version="160.6291.0-preview" />
|
||||
<PackageReference Update="Microsoft.SqlServer.DACFx" Version="160.6295.0-preview" />
|
||||
<PackageReference Update="Microsoft.Azure.Kusto.Data" Version="9.0.4" />
|
||||
<PackageReference Update="Microsoft.Azure.Kusto.Language" Version="9.0.4" />
|
||||
<PackageReference Update="Microsoft.SqlServer.Assessment" Version="[1.1.9]" />
|
||||
|
||||
@@ -836,6 +836,9 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner
|
||||
case TablePropertyNames.Columns:
|
||||
table.Columns.Move(fromIndex, toIndex);
|
||||
break;
|
||||
case TablePropertyNames.PrimaryKeyColumns:
|
||||
table.PrimaryKey.MoveColumn(fromIndex, toIndex);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -1142,6 +1145,7 @@ namespace Microsoft.SqlTools.ServiceLayer.TableDesigner
|
||||
});
|
||||
view.PrimaryKeyColumnSpecificationTableOptions.PropertiesToDisplay.Add(IndexColumnSpecificationPropertyNames.Column);
|
||||
view.PrimaryKeyColumnSpecificationTableOptions.PropertiesToDisplay.Add(IndexColumnSpecificationPropertyNames.Ascending);
|
||||
view.PrimaryKeyColumnSpecificationTableOptions.CanMoveRows = true;
|
||||
}
|
||||
|
||||
private void SetColumnsViewInfo(TableDesignerView view)
|
||||
|
||||
Reference in New Issue
Block a user