Open arborrow opened 1 year ago
For data integrity of SS contributions, it is important to check when merging donations to ensure that no orphans are created (where a ss_contribution.donation_id maps to a deleted donation.donation_id). Merge should check if the donation_id is already used in the ss_contribution table and if so, replace it with the target donation_id (the one that gets merged into).