Reputation: 4343
I am working on migrating a Magento 1.3 install to version 1.5 of Magento. Due to the complexities of the 1.3 install, the database is being migrated by an export/tweak/import process. Unfortunately, during the import step, the ID column for customers, orders, and products, is different from the old version's ID, and the differences result in non-trivial changes (i.e. a given order is not guaranteed to be attached to the same customer that it was before, an order is not guaranteed to consist of the same products as before).
How can we adjust our process so that either the ID column does not change, or so that the new state is internally consistent? - i.e. things in the DB may have different IDs than before, but a given order contains all of the same products that it did before and is attached to the same customer.
My first impulse is to try adding custom attributes to the rows in question and making them match the ID, then running a query on the post-migration database to restore the ID to the original value, but Magento's EAV data model makes this complicated, plus I'm not sure whether this will break the ability to add future products, orders, etc by putting IDs out of order. Is this plan viable?
Upvotes: 1
Views: 1009
Reputation: 2206
I recommend using Unirgy's uRapidFlow tool - it can save you hours of trouble. We've used it for really big websites in the past.
Some of its features are:
Upvotes: 2