I'm trying to change the type on the PRIMARY KEY from INT to UNSIGNED INT on MySQL server because I'm nearing the end of the INT range.
I tried to make a query
ALTER TABLE table_name CHANGE id id INT UNSIGNED AUTO_INCREMENT NOT NULL
As you can probably guess, this affects the ability to write to this table. Can you suggest a solution that will allow you to freely write to the table (without the risk of data loss) when executing ALTER TABLE?
I will add that ALTER TABLE takes about 25 minutes to complete.
Also I try to use pt-online-schema-change
but I have many database servers to which I need to execute this change and it would be much more convenient and easier for me to do it through the migration system that is in Symfony (doctrine)