Issue with drizzle-kit and enums
I have an issue with drizzle-kit and enums and can't find a solution. I am trying to use drizzle with Supabase. When I run
npx drizzle-kit push
is when I get an error if the schema contains a pgEnum
. If the database is fresh and the enum doesn't exist and I run that command the error I get is this:
If I create the enum manually in Supabase, the error I get is this:
This is my schema configurations.ts
:
This is my drizzle.config.ts
:
I am out of ideas so any help is well appreciated.1 Reply
Must export the enum
Must export everything in schema you want Drizzle to know about