Fix table options import

This commit is contained in:
1ilit 2025-05-14 13:04:55 +04:00
parent 0e2ffc84aa
commit 1942c191e0
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") {
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") {
table.comment = opt.value.replace(/^["']|["']$/g, "");
}