Postgres mengubah string tipe kolom ke integer
ALTER TABLE the_table ALTER COLUMN col_name TYPE integer USING (col_name::integer);
Clumsy Caterpillar
ALTER TABLE the_table ALTER COLUMN col_name TYPE integer USING (col_name::integer);