You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DO $$ BEGINCREATETYPE "charactertype" AS ENUM('player', 'npc', 'enemy');
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
CREATETABLEIF NOT EXISTS "campaignattribute" (
"id"serialNOT NULL,
"characterType" charactertype[3] DEFAULT player,npc,enemy NOT NULL
);
This SQL is invalid inside PostgreSQL context as the characterType default constrait is not generated inside '{}'.
Expected behavior
Field characterType from campaignattribute should generate "characterType" charactertype[3] DEFAULT '{player,npc,enemy}' NOT NULL.
Environment & setup
No response
The text was updated successfully, but these errors were encountered:
This issue here is the same as the #1003
I'll close this in favor of that one and I'll assign Andrew.
Please refer to #1344 for a discussion on how to work around this.
What version of
drizzle-orm
are you using?0.26.1
What version of
drizzle-kit
are you using?0.18.1
Describe the Bug
using
drizzle-kit generate:pg
generates this:This SQL is invalid inside PostgreSQL context as the
characterType
default constrait is not generated inside'{}'
.Expected behavior
Field
characterType
fromcampaignattribute
should generate"characterType" charactertype[3] DEFAULT '{player,npc,enemy}' NOT NULL
.Environment & setup
No response
The text was updated successfully, but these errors were encountered: