-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrations: Remove duplicate interviews before setting unique contraint
The migration which sets the survey_id and unique constraint is updated to remove duplicate interviews for a same participant. The interviews are deleted and only the one with the longest response field is kept. The migration itself is modified. It would have been impossible to run this migration if there was duplicate interviews anyway. For instances that have already successfully run it, it has no effect.
- Loading branch information
Showing
1 changed file
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters