Enum in Unique Constraint throws error.
Environment: drizzle-orm "0.36.0"
I have one file that has an enum:
In another file I am importing that enum and using it for a column in my table with a unique check over multiple columns:
I get the following error message when executing:
When removing the constraint or moving the enum to the same file (which is not possible since I need it in multiple places) the error disappears. Does anyone have any clue why this happens?
1 Reply
Update: The error message appeared because in my index file the type was exported below the table. Changing the order fixed this error. Closing