Skip to content

Swap primary key with bigint column for ci_pipeline_variables

Tianwen Chen requested to merge 408936-swap-pk into master

What does this MR do and why?

Swap the integer primary key with bigint column for ci_pipeline_variables

See the second step at https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#swap-the-columns-release-n--1

The first step !118878 (merged) is merged and executed on production, see #408936 (comment 1391375272)

The unique index index_on_ci_pipeline_variables_on_id_convert_to_bigint is created by !120946 (merged) (async prepare) and !120950 (merged) (concurrent create)

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.

Related to #408936 (closed)

Edited by Tianwen Chen

Merge request reports