You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is how I did to change the column role from my users table from string to UserRoleEnum.
defupdoUserRoleEnum.create_typeexecute"alter table users alter column role type role using (role::role)"enddefdowndoexecute"alter table users alter column role type character varying(255)"UserRoleEnum.drop_typeend
just modifying the column to the created enum type gives an error
The text was updated successfully, but these errors were encountered: