Delete orphaned deploy tokens
What does this MR do and why?
After !160526 (merged) records are no longer left orphaned when a project or group is deleted.
This merge request uses a batched background migration to delete all records that were left in this orphaned state before the fix was implemented. We need to remove these records to be able to add a NOT NULL constraint on project_id/group_id, which is required for it to be used as the sharding key(s).
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 #474370