Subject: | Postgres alter table for column types is wrong |
ALTER TABLE mytable ALTER COLUMN mycol TYPE integer;
should be
ALTER TABLE mytable ALTER COLUMN mycol TYPE integer USING (my_col::integer);
when changing a text field back to an integer.
See https://github.com/frioux/DBIx-Class-DeploymentHandler/issues/32