Reputation: 935
I have a column with type ENUM. The possible values are "public, private, followers".
How can I convert the column type to varchar without losing the values?
The postgres version is 9.6
Upvotes: 6
Views: 5331
Reputation: 42853
Yes, you can
alter table table_name alter column col_name TYPE varchar;
Upvotes: 12