I'm trying to change the datatype of a column to varchar but get the following error
ERROR: syntax error at or near "type" at character 40
My code looks as follows
alter table n_logs alter column action type varchar(100);
I'm running PostgreSQL 7.4.13 (Yeah, I know I need to upgrade)