I have big issue with drizzle, when u push changes do db, drizzle is not creating custom pgEnum
I will send code wait a min
26 Replies
And im getting this error when pushing
Same error !!
Same here!
Hey! What version of
drizzle-kit
are you using?"drizzle-orm": "^0.44.5",
"drizzle-kit": "^0.31.4"
oh wrong one XD
Could you please share the output of
drizzle-kit push
?Can you share sql statements above this error?
wdym?

Are
roleEnum
and keysTable
in the same file?yep
Can you check enums in drizzle studio?
1.
drizzle-kit studio
2. https://local.drizzle.studio
3. Database studio -> Enums
nothing
I can’t reproduce this right now, but I’ll get back to you once we resolve the issue. Thanks for the details.
i can do screen share or something
if u need
but if u already know about the issue im happy, when will it be fixed estaminated?
Most likely tomorrow, but definitely by the end of this week.
happy to hear that, im waiting for that :Luvv:
big w for u, biggest communication skills
Are you sure
roleEnum
is exported from your schema? Could you also run this query in SQL console and share the result?
gonna check in 5 hrs
im in school rn
i mean going to school
schema.js
key.js - model
all i can give u rn
You should export all entities from your main schema file (specified in
drizzle.config.ts
) so that drizzle-kit
can get information about them.
Adding this export should resolve the error.
I pretty sure that i tried that already, but i will check when i'm home okey?
Sure.
Thx for being patient :Luvv:
Now IT works, thx
My schema was an issue
Love u for helping me out