Skip to content

Fix project mirror data schema

Tiago Botelho requested to merge fix-project-mirror-data-schema into master

What does this MR do?

Adds NOT NULL constraint to the ProjectMirrorData project_id foreign_key and adds uniqueness constraint to the project_id index as well.

Why was this MR needed?

This was causing the db/schema to be both inconsistent between the EE and CE versions of GitLab and between MySQL and Postgres versions.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/46142

Edited by Yorick Peterse

Merge request reports

Loading