Isn’t changing all your primary id’s like this this going to invalidate all your records using the that id field as foreign keys? Reply
Thanks for your comment – there are infrequent cases where you would want to re-assign a primary key in both the parent and child records (primary and foreign key). The script in this blog post does that – it loops through a child table and re-assigns the foreign key to the new value of the primary key in order to preserve the relationship. Reply