© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•14mo ago•
19 replies
Phantom

Drizzle not creating enum

Hey guys, I am using drizzle in my project with postgres. I create a new enum(with pgenum) but the generate sql is missing the definition of the enum.
const status = pgEnum('status', [
    'created',
    'generating',
    'generated',
    'error',
]);
const status = pgEnum('status', [
    'created',
    'generating',
    'generated',
    'error',
]);

and using this as
status: status().notNull().default('created')
status: status().notNull().default('created')
and here's the generated sql
CREATE TABLE "curriculums" (
    "id" varchar PRIMARY KEY NOT NULL,
    "user_id" varchar NOT NULL,
    "language_id" varchar NOT NULL,
    "created_at" varchar DEFAULT now() NOT NULL,
    "status" "status" DEFAULT 'created' NOT NULL,
    "reason" varchar DEFAULT '' NOT NULL,
    "knowledge" varchar DEFAULT '' NOT NULL
);
CREATE TABLE "curriculums" (
    "id" varchar PRIMARY KEY NOT NULL,
    "user_id" varchar NOT NULL,
    "language_id" varchar NOT NULL,
    "created_at" varchar DEFAULT now() NOT NULL,
    "status" "status" DEFAULT 'created' NOT NULL,
    "reason" varchar DEFAULT '' NOT NULL,
    "knowledge" varchar DEFAULT '' NOT NULL
);


there's no definition of enum
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Drizzle update enum
Drizzle TeamDTDrizzle Team / help
3y ago
Drizzle not creating tables
Drizzle TeamDTDrizzle Team / help
6mo ago
Drizzle not creating table
Drizzle TeamDTDrizzle Team / help
13mo ago
trouble creating Enum
Drizzle TeamDTDrizzle Team / help
2y ago