updating primary keys in migrations