Unable to push because of enum type array #4174
Unanswered
JFDontigny
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are trying to migrate from Prisma to Drizzle, but have hit a weird issue: when trying to execute npx drizzle-kit push, Drizzle seems to either miss a double quote or add a superfluous one... The push command says it will drop and recreate the column, and even if we say yes it generates an error.
We basically only tried to pull the existing schema and get the initial setup working, but it looks like the mapping doesn't like the fact there is a double quoted enum type (NotificationLists) with an array (note the double quote between NotificationLists and [].
In the database, it looks like:
Looking at the schema.ts file, we have:
As a point of reference, in Prisma we had:
Any help to troubleshoot this problem would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions