I have a rather big problem here... We have a MySQL database with a table containing over 26 million rows. Now, the problem is that my Java code is generating the primary keys (via a Hibernate annotation), since the column doesn't have an auto_increment flag. (Don't know why)
This setup can cause problems from time to time, such as constraint violations on the PK column. I would like to change it so that MySQL generates the auto incremented PKs.
Is there any way to add an auto_increment to the column without having to rebuild this massive table? In a timely manner, since our service window is at only 2 hours.
Regards