Skip to content

Fix ci_projects migration by using the value only from latest row [ci skip]

Kamil Trzcińśki requested to merge fix-migration into master

This is needed, because for some projects we have duplicate ci_projects. This was introduced by lack of DB uniqueness on ci_projects.gitlab_id.

The MR fixes edge case by selecting value from latest.

/cc @yorickpeterse

Fixes: gitlab-org/gitlab-ce#4123

Merge request reports