mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-07-18 10:11:24 +00:00
Fix table options import (#449)
* Fix json schemas to allow string ids * Fix table options import
This commit is contained in:
@@ -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, "");
|
||||
}
|
||||
|
@@ -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, "");
|
||||
}
|
||||
|
Reference in New Issue
Block a user