Replace token indices in ci_runners table with unique versions
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR implements a few post-deployment migrations to replace the existing ci_runners
indices on token
and token_encrypted
with unique versions of those indices. We already ensured that no duplicates exist in the ci_runners
table in Nullify duplicate runner authentication tokens (!98689 - merged), and call finalize_background_migration
to ensure that those migrations have finished running before adding the unique indices. This MR is very similar to Replace runners token indices in projects table (!90501 - merged) from %15.2 which performed the same logic for runner registration tokens in the projects
table.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.