This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
Fix mergeUsers mutation with regard to answers and other constraints #516
Labels
bug
Something isn't working
As of now, the
userId
of an answer can not be modified due to the following PG trigger:backends/packages/voting/migrations/sqls/20190907043631-questionnaire-improvements-up.sql
Lines 20 to 26 in d390713
A possible workarround could be this: 0ad0aca
As of now, I am not certain if this PG trigger is important, and if the above code change would break something.
Additionally, mergeUsers() might fail due to unic constraints. We need to figure out a good way to automatically merge such users.
The text was updated successfully, but these errors were encountered: