I have performed 2 migrations and relationship between orders and products is lost. Why is it so?

In case you start first migration and move products, for example, and then start second migration and move customers with orders - relationship between them will be lost. That’s why it is recommended to move all the data in one migration.