Preserve hidden primary key when altering table

Looks like the table indexes can also be changed if you change the data type of an indexed column.