Postgres changes: ALTER TABLE uses TYPE, not ENGINE

Compare column type names case-insensitively, so we don't constantly try to change BIGINT to bigint
Store SQL calls in a var for easier debugging