mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 02:09:17 +00:00
add table comment on import in mariadb and mysql
This commit is contained in:
parent
588f74648f
commit
e36460a8fa
@ -161,6 +161,13 @@ export function fromMariaDB(ast, diagramDb = DB.GENERIC) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
e.table_options.forEach((opt) => {
|
||||
if (opt.keyword === "comment") {
|
||||
table.comment = opt.value.replace(/^["']|["']$/g, "");
|
||||
}
|
||||
});
|
||||
|
||||
table.fields.forEach((f, j) => {
|
||||
f.id = j;
|
||||
});
|
||||
|
@ -161,6 +161,13 @@ export function fromMySQL(ast, diagramDb = DB.GENERIC) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
e.table_options.forEach((opt) => {
|
||||
if (opt.keyword === "comment") {
|
||||
table.comment = opt.value.replace(/^["']|["']$/g, '');
|
||||
}
|
||||
});
|
||||
|
||||
table.fields.forEach((f, j) => {
|
||||
f.id = j;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user