Reorder migrations for ci_deleted_objects

What does this MR do and why?

In !170215 (diffs) we've added these migrations, but they depend on the check constraint to be removed before they are executed, which might not happen in some cases: #495123 (comment 2288539123)

Now if we reorder these two migrations, then it first updates the invalid records which satisfies the check constraint and then finishes the background migration.

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

Numbered steps to set up and validate the change are strongly suggested.

Related to #495123 (closed)

Edited by Marius Bobin

Merge request reports

Loading