We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae7667b commit d3702eeCopy full SHA for d3702ee
src/utils/importSQL/postgres.js
@@ -360,6 +360,23 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
360
}
361
});
362
363
+ } else if (e.type === "comment") {
364
+ if (e.target.type === "table") {
365
+ const table = tables.find((t) => t.name === e.target?.name?.table);
366
+ if (table) {
367
+ table.comment = e.expr.expr.value;
368
+ }
369
+ } else if (e.target.type === "column") {
370
371
372
+ const field = table.fields.find(
373
+ (f) => f.name === e.target?.name?.column?.expr?.value,
374
+ );
375
+ if (field) {
376
+ field.comment = e.expr.expr.value;
377
378
379
380
381
};
382
0 commit comments