Commit Graph

3 Commits

Author SHA1 Message Date
Yorick Peterse 63bd49696d
Remove more orphans when removing stray namespaces
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/25146
2017-01-11 09:59:33 -05:00
Yorick Peterse 5586ff5784
Handle orphans when removing soft deleted groups
There may be more tables but these were the tables that were problematic
for GitLab.com due to foreign key constraints (without cascading
deletes).
2016-11-22 14:56:13 +01:00
Timothy Andrew bf28506f67 Add a migration to remove soft-deleted groups.
The database should not have any soft-deleted groups. Due to a race
condition (soft-delete completes after the hard-delete), soft-deleted
groups were (incorrectly) left in the database, causing issues while
trying to create a new group with the same name.
2016-11-18 14:27:13 +05:30