Problem
multiple duplicate exists in the database causing errors when logging in or resetting passwords etc since the email field is treated as unique
Solution
It’s better to merge the users first, and then, when they try to log in, they can reset their passwords.
You need to create a script to merge multiple objects into a single instance and reassign all related objects (both foreign key and many-to-many) to the new instance
Task
[ ] create the query and add to the script "entrypoint.sh" (if this doesn't work might have to run query directly on db)
[ ] send emails to all users whose data has been merged
Problem multiple duplicate exists in the database causing errors when logging in or resetting passwords etc since the email field is treated as unique
Solution It’s better to merge the users first, and then, when they try to log in, they can reset their passwords. You need to create a script to merge multiple objects into a single instance and reassign all related objects (both foreign key and many-to-many) to the new instance
Task