After I generate via drizzle-kit pg:generate, I was unable to migrate.
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "memos" (
"id" bigint PRIMARY KEY NOT NULL,
"sender" varchar(20) NOT NULL,
"recipient" varchar(20),
"isReceived" "boolean GENERATED ALWAYS AS ((recipient IS NOT NULL)) STORED"
);
It should be "isReceived" boolean GENERATED ALWAYS AS ((recipient IS NOT NULL)) STORED (without quote ").
What version of
drizzle-orm
are you using?0.30.6
What version of
drizzle-kit
are you using?0.20.14
Describe the Bug
After I generate via
drizzle-kit pg:generate
, I was unable to migrate.It should be
"isReceived" boolean GENERATED ALWAYS AS ((recipient IS NOT NULL)) STORED
(without quote ").Expected behavior
Should generate valid SQL.
Environment & setup
I use Vercel Postgres.