Skip to content

Add partition_id to Ci::PipelineConfig

Max Orefice requested to merge morefice/add-partition-id-pipeline-config into master

Ref: #430722 (closed)

What does this MR do and why?

This MR cascades partition_id from pipeline to Ci::PipelineConfig.

We need to add this new column in order to redefine the FK association between ci_pipelines_config and ci_pipelines.

TABLE "ci_pipelines_config" CONSTRAINT "fk_rails_906c9a2533" FOREIGN KEY (pipeline_id) REFERENCES ci_pipelines(id) ON DELETE CASCADE

Why are we doing this?

In order to partition ci_pipelines all referenced FK must include the partition key as explained in our documentation.

Merge request reports