Skip to content

Sync validate foreign key for ci_stages

Tianwen Chen requested to merge 422814-sync-foreign-key into master

What does this MR do and why?

This is the second migration to validate the foreign key for ci_stages async created synchronously in !130901 (merged)

See https://docs.gitlab.com/ee/development/database/add_foreign_key_to_existing_column.html#add-a-migration-to-validate-the-fk-synchronously

See the following output from postgres.ai that the foreign key validation is completed on prod:

Foreign-key constraints:
    "fk_c5ddde695f" FOREIGN KEY (pipeline_id_convert_to_bigint) REFERENCES ci_pipelines(id) ON DELETE CASCADE
    "fk_fb57e6cc56" FOREIGN KEY (pipeline_id) REFERENCES ci_pipelines(id) ON DELETE CASCADE

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.

Related to #422814 (closed)

Edited by Tianwen Chen

Merge request reports