mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-31 00:22:30 +00:00
fix(sqlserver): load table structure metadata
This commit is contained in:
@@ -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\(\(\) => \[\]\)/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user