Open Malin88 opened 5 months ago
I have the same error.
Same here
same
Same
Same 😒
Hey guys, I understand what is the main problem. We should use a different and unique name for pgEnum. pgEnum name and field name should not be the same. change pgEnum("status") to pgEnum("user_status")
Same
Thank you @amit548!
What version of
drizzle-orm
are you using?0.29.5
What version of
drizzle-kit
are you using?0.21.1
Describe the Bug
After update drizzle-kit to version 0.21.1 I cannot set default values for enum field.
Returns
error: invalid input value for enum status: "inactive"
. Before update everything works correctlyExpected behavior
Set the default status field value to "inactive".
Environment & setup
No response