Skip to content

Add partition_id to Ci::PipelineMetadata

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

Ref: #430722 (closed)

What does this MR do and why?

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

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

TABLE "ci_pipeline_metadata" CONSTRAINT "fk_rails_50c1e9ea10" 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.

Edited by Max Orefice

Merge request reports