how to change column type psql
snippet in sql

postgresql change column type

user2485


        
            
        
     ALTER TABLE assets ALTER COLUMN name TYPE VARCHAR;

how to change column type psql

user5795

ALTER TABLE table_name
ALTER COLUMN column_name [SET DATA] TYPE new_data_type;

update column data type postgres

user5450

ALTER TABLE table_name
ALTER COLUMN column_name [SET DATA] TYPE new_data_type;