Skip to content

EE: Add foreign keys to various tables that point to the "projects" table

Yorick Peterse requested to merge ee-foreign-keys-for-project-model into master

This is the EE version of CE MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9388. It includes the CE changes (with conflicts resolved), as well as adding some foreign keys on its own to ensure that removing a project won't leave behind orphaned data.

Migration Timings

Migration Time On Staging
AddEEForeignKeysPointingToProjects 18 seconds
AddForeignKeyForApprovals 34 seconds
Edited by Yorick Peterse

Merge request reports