fix error at change type of text field to integer in PostgreSQL