rename colum and chnage data type in postgres' code example
Example: how to change column type psql
ALTER TABLE table_name
ALTER COLUMN column_name [SET DATA] TYPE new_data_type;
ALTER TABLE table_name
ALTER COLUMN column_name [SET DATA] TYPE new_data_type;