feat(oracle): show table constraints in structure editor

This commit is contained in:
Melody Ruch authored and GitHub committed 2026-08-15 23:28:53 +08:00
1 parent 76b8f2f54b
commit f9c4f290f5
19 files changed
+413 -20

No files matched your search

+1 -1
View File
@@ -1019,7 +1019,7 @@ function normalizeToolbarItems(items: Partial<ToolbarItems> | undefined): Toolba
};
}
const TABLE_INFO_TABS = new Set<TableInfoTab>(["ddl", "columns", "indexes", "foreignKeys", "triggers"]);
const TABLE_INFO_TABS = new Set<TableInfoTab>(["ddl", "columns", "indexes", "foreignKeys", "constraints", "triggers"]);
function normalizeTableInfoTab(value: unknown): TableInfoTab {
return typeof value === "string" && TABLE_INFO_TABS.has(value as TableInfoTab) ? (value as TableInfoTab) : DEFAULT_EDITOR_SETTINGS.tableInfoActiveTab;