Hi community,
We would recommend delaying the migration of your production ERPNext instances till the next release of version 4 (will be out soon) as we are working on fixing the edge cases of the database migrations.
Pratik erpnext