Backfill issue_links_id on related_epic_links

What does this MR do and why?

Issue: #497766 (closed)

Now that we set the foreign key on creation for related epic links, we can backfill the foreign keys and correlate them with the issue_links records.

Sets the foreign key of related_epic_links to its correlating issue_links record.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

gdk psql
-- `issue_link_id` will be NULL for nearly all records
-- After running the migration, the `issue_link_id` will be set
select * from related_epic_links; 
Edited by Nicolas Dular

Merge request reports

Loading