We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drizzle-orm
0.29.5
drizzle-kit
0.21.1
After update drizzle-kit to version 0.21.1 I cannot set default values for enum field.
export const userStatusEnum = pgEnum("status", ["inactive", "active", "banned"]); createTable( "users", { status: userStatusEnum("status").default('inactive').notNull() })
Returns error: invalid input value for enum status: "inactive". Before update everything works correctly
error: invalid input value for enum status: "inactive"
Set the default status field value to "inactive".
No response
The text was updated successfully, but these errors were encountered:
I have the same error.
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: