mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 02:09:17 +00:00
Fix table options import (#449)
* Fix json schemas to allow string ids * Fix table options import
This commit is contained in:
parent
b7445e22d1
commit
14da9c0a10
@ -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, "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user