Test steps:
1. Checkout 21.10
2. Ensure you have some users
3. Make the value of artefact.title where artefacttype = 'email' DIFFERENT to the value of artefact_internal_profile_email.email (for the same user)
4. Make a backup of the database in this state
5. Checkout main - it will fail
6. Replace database with the backup
7. Checkout the patch fix above
8. Then run the upgrade again - it should upgrade successfully (you may need to force the upgrade by using the -f flag running the cli script.)
Test steps: internal_ profile_ email.email (for the same user)
1. Checkout 21.10
2. Ensure you have some users
3. Make the value of artefact.title where artefacttype = 'email' DIFFERENT to the value of artefact_
4. Make a backup of the database in this state
5. Checkout main - it will fail
6. Replace database with the backup
7. Checkout the patch fix above
8. Then run the upgrade again - it should upgrade successfully (you may need to force the upgrade by using the -f flag running the cli script.)