Add database foreign key between pipelines and builds

What does this MR do?

This merge request adds missing foreign key between pipelines and builds.

Why was this MR needed?

We need this change because of gitlab-org/gitlab-ce#46035 and because we shipped background migration that depends on this constraint being present.

Does this MR meet the acceptance criteria?

  • Changelog entry added
  • Tests added for this feature/bug
  • Has been reviewed by Backend
  • Has been reviewed by Database

What are the relevant issue numbers?

Closes gitlab-org/gitlab-ce#46035

Edited by Grzegorz Bizon

Merge request reports

Loading