Skip to content

Prepare foreign key constraints for bigint ci_pipeline_messages.pipeline_id

Problem

This column references the ci_pipelines table and its column type is not bigint.

Process

This is part of the process to convert the column to bigint.

To be able to swap the columns, We will need to replicate the following foreign key constraints for the new bigint column ci_pipeline_messages.pipeline_id_convert_to_bigint:

-fk_rails_8d3b04e3e1

Follow the instruction, and choose a strategy to add the foreign key constraints based on the table size and the migration time.