Invalid Input Value for Enum
Hello! I am using a enum but running into a weird issue when trying to set the value as one of options in enum. The following is the sections from my schema:
Error:
Drizzle Schema Table:
Drizzle Schema Enum:
Any idea why this might be? Thanks!
Error:
Error: invalid input value for enum status: "expired"Drizzle Schema Table:
Drizzle Schema Enum:
Any idea why this might be? Thanks!
Solution
Update for anyone who finds this in the future, I went ahead and found the following article which I used to modify the migration. All seems to be working now!
Article: https://www.munderwood.ca/index.php/2015/05/28/altering-postgresql-columns-from-one-enum-to-another/
New Migration:
Article: https://www.munderwood.ca/index.php/2015/05/28/altering-postgresql-columns-from-one-enum-to-another/
New Migration: