Add foreign key for projects.namespace_id
The following discussion from gitlab-ce!13598 should be addressed:
-
@yorickpeterse started a discussion: (+1 comment) I don't remember if a foreign key is already present, but as long as
projects.namespace_iddoesn't have one (in particular withON DELETE CASCADE) this problem will keep happening. If no foreign key is present we should add one as soon as possible.
See also https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/foreign_keys.md
Edited by 🤖 GitLab Bot 🤖