summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-22 03:09:31 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-22 03:09:31 +0000
commit34daf3bdb3c68289eb2eedfb78cd4deb816047fd (patch)
treecd9eeb6cea82a73da95fafb87233b219609181b4 /db
parent000a4896addb410780e3aad7e2cdcee3298aeb17 (diff)
downloadgitlab-ce-34daf3bdb3c68289eb2eedfb78cd4deb816047fd.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20230216191507_delete_incorrectly_onboarded_namespaces.rb14
1 files changed, 3 insertions, 11 deletions
diff --git a/db/post_migrate/20230216191507_delete_incorrectly_onboarded_namespaces.rb b/db/post_migrate/20230216191507_delete_incorrectly_onboarded_namespaces.rb
index cdcddcaf030..5da485fd442 100644
--- a/db/post_migrate/20230216191507_delete_incorrectly_onboarded_namespaces.rb
+++ b/db/post_migrate/20230216191507_delete_incorrectly_onboarded_namespaces.rb
@@ -6,17 +6,9 @@ class DeleteIncorrectlyOnboardedNamespaces < Gitlab::Database::Migration[2.1]
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
- execute(<<~SQL)
- DELETE
- FROM onboarding_progresses
- WHERE onboarding_progresses.id NOT IN
- (SELECT onboarding_progresses.id
- FROM onboarding_progresses
- INNER JOIN namespaces ON namespaces.id = onboarding_progresses.namespace_id
- INNER JOIN projects ON projects.namespace_id = namespaces.id
- WHERE projects.name IN ('Learn GitLab',
- 'Learn GitLab - Ultimate trial'))
- SQL
+ # Changed to a no-op, this migration was reverted after
+ # an incident during a deploy to production on gitlab.com
+ # https://gitlab.com/gitlab-com/gl-infra/production/-/issues/8436
end
def down