Skip to content

[BUG] Comments on table are not imported in POSTGRES using IMPORT FROM SQL #624

@Pranay-Pandey

Description

@Pranay-Pandey

Describe the bug
After exporting a schema from DrawDB postgresql, when I try to import using IMPORT FROM SQL option, I do not see any comments on the newly imported tables/column

To Reproduce
Steps to reproduce the behavior:
Save the following sql file (can also make new tables and use File > EXPORT SQL)

CREATE TABLE IF NOT EXISTS "customer" (
	"id" INTEGER NOT NULL UNIQUE GENERATED BY DEFAULT AS IDENTITY,
	-- comment_on
	"name" VARCHAR(255) NOT NULL,
	PRIMARY KEY("id")
);

COMMENT ON TABLE "customer" IS 'comment_on';
COMMENT ON COLUMN "customer"."name" IS 'comment_on';
  1. Go to File > IMPORT FROM SQL
  2. Attach the provided SQL file
  3. Click Import
  4. There are no comments on the table/column

Expected behavior
The comments should appear on customer table and name column

Screenshots

Additional context
Works on MYSql Export > MySql import but does not work on Postgresql

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions