Skip to content

Add partition_id to Ci::DailyBuildGroupReportResult

Ref: #461548

What does this MR do and why?

This MR cascades partition_id from Ci::Pipeline to Ci::DailyBuildGroupReportResult.

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

TABLE "ci_daily_build_group_report_results" CONSTRAINT "fk_rails_ee072d13b3" FOREIGN KEY (last_pipeline_id) REFERENCES ci_pipelines(id) ON DELETE CASCADE

This is a similar approach than we used for other CI models in #430722 (closed).

Edited by Max Orefice

Merge request reports