jgraph / drawio-desktop

Official electron build of draw.io
https://www.diagrams.net
Apache License 2.0
50.03k stars 4.97k forks source link

Creating schema from SQL DDL (Postgresql) #1794

Closed ronvaleron closed 3 months ago

ronvaleron commented 3 months ago

Hello. I just use creating schema from SQL DDL (PostgreSQL), and find the problem. If I use create table if not exists, then name for tables will be - IF NOT EXISTS public.table0... And references don't show (FK ...) CREATE TABLE IF NOT EXISTS public.table0 ( id bigserial PRIMARY KEY, deleted boolean NOT NULL DEFAULT FALSE, full_name varchar ); CREATE TABLE IF NOT EXISTS public.table1 ( id bigserial PRIMARY KEY, deleted boolean NOT NULL DEFAULT FALSE, table0_id bigint NOT NULL REFERENCES public.table0 (id) ); image