fix(sqlserver): load table structure metadata

This commit is contained in:
t8y2
2026-05-17 20:10:21 +08:00
parent a16fed35d4
commit 489d7ae919
3 changed files with 85 additions and 32 deletions
@@ -10,3 +10,10 @@ test("column comments can be expanded into a multiline editor", () => {
assert.match(source, /<textarea[\s\S]*v-model="column\.comment"/);
assert.match(source, /t\("structureEditor\.editComment"\)/);
});
test("structure editor keeps columns when optional metadata fails", () => {
assert.match(source, /const nextColumns = await api\.getColumns/);
assert.match(source, /api\s*\n\s*\.listIndexes[\s\S]*\.catch\(\(\) => \[\]\)/);
assert.match(source, /api\s*\n\s*\.listForeignKeys[\s\S]*\.catch\(\(\) => \[\]\)/);
assert.match(source, /api\s*\n\s*\.listTriggers[\s\S]*\.catch\(\(\) => \[\]\)/);
});