How to change the datatype from "int" to "bigint" in ERPnext database?

Hi is there a way to safely change a datatype from int to bigint? Or are there anyways to safely change datatypes?

Thanks.

USE ;

ALTER TABLE

`
MODIFY COLUMN ;

Used this command to change the datatype.