I know it is unorthodox and potentially dangerous to want to convert something from a larger to a smaller sized data type. However, in this case, it is extremely unlikely that t
I unfortunately did not have the right to create functions on the DB where I was working, so after trying a few things this worked:
ALTER TABLE table_name MODIFY column_name INTEGER;
Saved me having to rewrite 15 foreign keys.