Background migration to backfill merge request compliance violations
Description
Once we create the required columns in #385499 (closed), we'll have to backfill the existing rows in the merge request compliance violations table so that we can start using the data for queries.
Implementation Plan
- Iterate over each row inside
merge_request_compliance_violations
table and update the newly created columns using the existing data inmerge_requests
andmerge_request_metrics
table. - This would be an irreversible background migration.
Edited by Huzaifa Iftikhar