How do I create a postgres enum for a different schema?

if i create a postgres schema like this export const audit = pgSchema("audit"); i am unable to create an enum like this export const myEnum = audit.enum("my_enum", ["A", "B", "C"]);. the only options i have are .schemaName, .table, .view. what should i do instead?
1 Reply
stumpykilo
stumpykiloOP9mo ago
just found the issue that was created a few hours ago and is on the TODO board. yay! https://github.com/drizzle-team/drizzle-orm/issues/2042
GitHub
[FEATURE]: allow creating enums in non-default schemas · Issue #204...
Describe what you want Currently, enums can be only created in the default schema
Want results from more Discord servers?
Add your server