© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
I have some enum types on a schema, but I can't define it in drizzle-orm. - Drizzle Team
DT
Drizzle Team
•
3y ago
MAST
I have some enum types on a schema, but I can't define it in drizzle-orm.
I have defined a couple of enums in another schema
, let
's say main
.
Now I want to define it in drizzle
-orm
, there
's the
pgEnum
pgEnum
but if I use it
, when creating migrations or pushing to the database it
'll try to change the table column types from
main.enum_name
main.enum_name
to
enum_name
enum_name
which fails
.
It
'll be great if we had something similar to the
schema.table
schema.table
but for enums
(
schema.enum
schema.enum
)
.
Also drizzle kit doesn
't generate the correct schema because of this
. It creates the enums but it doesn
't connect them to the correct schema
.
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,959
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
drizzle connection missing schema types
DT
Drizzle Team / help
2y ago
I have some issues using drizzle as a package infering the types
DT
Drizzle Team / help
7mo ago
Cannot generate Typebox schema from Drizzle Enum
DT
Drizzle Team / help
16mo ago
Drizzle misses some schema files
DT
Drizzle Team / help
2y ago