pgEnum conversion not working as expected
I have the following pgEnum defined:
(Yes, there'll be more types later). My schema is:
However when I do:
I get the error
How can I solve this? My ApprovalRequestType enum is also mapped to
(Yes, there'll be more types later). My schema is:
However when I do:
I get the error
ERROR: column \"type\" is of type approval_request_type but expression is of type text; Hint: You will need to rewrite or cast the expression.How can I solve this? My ApprovalRequestType enum is also mapped to
'CREDIT_NOTE'