Steps to reproduce:
- Start SQ 7.9 with PostgreSQL
- Insert any orphan into the "groups_users" table
- Migrate SQ to 8.9
- Error occurred
(I was not able to reproduce orphans in a database by user actions)
Manually delete orphans in a database and re-run migration.
Query to find orphans: