There are three migration types being executed in this specific order:
  • Internal migrations
  • User migrations
  • Schema update
The order should be:
  • Internal migrations
  • Schema update
  • User migrations
Reason behind this is that when the developer is working on something, it is done in this order: A new field is added in the CMS and the migration is written at the same time to work with that field. In our scenarios, all the user migrations are somehow connected to the schema change and require schema to be updated first.