dbml icon indicating copy to clipboard operation
dbml copied to clipboard

support for timestamptz

Open jeffbum opened this issue 5 years ago • 5 comments

when converting from postgres --> dbml, timestamptz is not supported. Can switch in sql documentation to timestamp, just complicates it further than needed to be. Output of timestamp in dbml is fine as well.

jeffbum avatar Mar 02 '20 15:03 jeffbum

found, if I change timestamptz to 'timestamp with time zone', it generates just as well. It's a little work on my end, but should not be too difficult. would still like to see timestamptz conversion just the same.

jeffbum avatar Mar 02 '20 16:03 jeffbum

Hi @jeffbum, sorry I missed this. I don't quite understand why timestampz is not supported when converting from postgres -> dbml. Can you share reproduction steps pls?

nvquanghuy avatar Apr 08 '20 14:04 nvquanghuy

+1

CREATE TABLE "public"."payment" (
    "id_payment" int8 NOT NULL DEFAULT nextval('payment_id_payment_seq'::regclass),
    "created_at" timestamptz NOT NULL,
    PRIMARY KEY ("id_payment")
);

It is quite simple, this will break the cli while it is completely fine PostgreSQL script.

incompletude avatar Dec 24 '20 08:12 incompletude

+1

csangonzo avatar Apr 22 '21 12:04 csangonzo

+1

khoahuynhdev avatar Jul 06 '21 08:07 khoahuynhdev