Fix table options import (#449)

* Fix json schemas to allow string ids

* Fix table options import
This commit is contained in:
1ilit 2025-05-14 13:15:46 +04:00 committed by GitHub
parent b7445e22d1
commit 14da9c0a10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ export function fromMariaDB(ast, diagramDb = DB.GENERIC) {
} }
}); });
e.table_options.forEach((opt) => { e.table_options?.forEach((opt) => {
if (opt.keyword === "comment") { if (opt.keyword === "comment") {
table.comment = opt.value.replace(/^["']|["']$/g, ""); table.comment = opt.value.replace(/^["']|["']$/g, "");
} }

View File

@ -162,7 +162,7 @@ export function fromMySQL(ast, diagramDb = DB.GENERIC) {
} }
}); });
e.table_options.forEach((opt) => { e.table_options?.forEach((opt) => {
if (opt.keyword === "comment") { if (opt.keyword === "comment") {
table.comment = opt.value.replace(/^["']|["']$/g, ""); table.comment = opt.value.replace(/^["']|["']$/g, "");
} }