This step is often done for data integrity. If the schema changes too much, it is sometimes not possible. I always do a backup beforehand, adjust the inserts and then simply run them through. Sometimes you can also make an adjustment to the schema so that this doesn't happen (this is only difficult if you want to have the 3rd normal form). Depending on the data, maybe work with seeds?