Add foreign key for ci_pipelines.auto_canceled_by_id_convert_to_bigint
What does this MR do and why?
This is to prepare the foreign key for ci_pipelines.auto_canceled_by_id_convert_to_bigint
- Create invalid foreign key in a regular migration. See https://docs.gitlab.com/ee/development/database/add_foreign_key_to_existing_column.html
- Prepare the async foreign key validation in post migration. See https://docs.gitlab.com/ee/development/database/add_foreign_key_to_existing_column.html#schedule-the-fk-to-be-validated
The index for ci_pipelines.auto_canceled_by_id_convert_to_bigint is already created in #422808 (closed):
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.
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.
Related to #422809 (closed)
Edited by Tianwen Chen