fix(sqlserver): support primary key edits in structure editor

This commit is contained in:
YingNing authored and GitHub committed 2026-09-30 20:24:01 +08:00
1 parent c9e8ee53f7
commit a55466f578
6 files changed
+121 -23

No files matched your search

@@ -102,6 +102,10 @@ describe("tableStructureCapabilities", () => {
addPrimaryKey: true,
alterPrimaryKey: false,
});
expect(getTableStructureCapabilities("sqlserver", "sqlserver")).toMatchObject({
addPrimaryKey: true,
alterPrimaryKey: true,
});
for (const databaseType of ["oceanbase-oracle", "iris"] as const) {
expect(getTableStructureCapabilities(databaseType, databaseType)).toMatchObject({
addPrimaryKey: false,