primary and foreign key changes for InnoDB