How to fix Cannot alter type of column used by view or rule in PostgreSQL | DevErrors