diff --git a/db/post_migrate/20251205211140_queue_backfill_security_project_tracked_contexts_default_branch.rb b/db/post_migrate/20251205211140_queue_backfill_security_project_tracked_contexts_default_branch.rb index 2dfb588a5d63da355dc4983363299a0a7b334dbc..3d7f4aa9abf2d92f231b3c3e6aa3c9db09f46f61 100644 --- a/db/post_migrate/20251205211140_queue_backfill_security_project_tracked_contexts_default_branch.rb +++ b/db/post_migrate/20251205211140_queue_backfill_security_project_tracked_contexts_default_branch.rb @@ -4,23 +4,9 @@ class QueueBackfillSecurityProjectTrackedContextsDefaultBranch < Gitlab::Databas milestone '18.7' restrict_gitlab_migration gitlab_schema: :gitlab_main_org - MIGRATION = "BackfillSecurityProjectTrackedContextsDefaultBranch" - DELAY_INTERVAL = 2.minutes - BATCH_SIZE = 1000 - SUB_BATCH_SIZE = 100 - def up - queue_batched_background_migration( - MIGRATION, - :projects, - :id, - job_interval: DELAY_INTERVAL, - batch_size: BATCH_SIZE, - sub_batch_size: SUB_BATCH_SIZE - ) + # This migration is removed by migration 20251217173006 because it is very slow. end - def down - delete_batched_background_migration(MIGRATION, :projects, :id, []) - end + def down; end end diff --git a/db/post_migrate/20251217173006_remove_backfill_security_project_tracked_contexts_default_branch.rb b/db/post_migrate/20251217173006_remove_backfill_security_project_tracked_contexts_default_branch.rb new file mode 100644 index 0000000000000000000000000000000000000000..762b7c311138e78a8b5851f04542946b05cfafc5 --- /dev/null +++ b/db/post_migrate/20251217173006_remove_backfill_security_project_tracked_contexts_default_branch.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +class RemoveBackfillSecurityProjectTrackedContextsDefaultBranch < Gitlab::Database::Migration[2.3] + milestone '18.8' + restrict_gitlab_migration gitlab_schema: :gitlab_main_org + + MIGRATION = "BackfillSecurityProjectTrackedContextsDefaultBranch" + + def up + delete_batched_background_migration(MIGRATION, :projects, :id, []) + end + + def down + # no-op + end +end diff --git a/db/schema_migrations/20251217173006 b/db/schema_migrations/20251217173006 new file mode 100644 index 0000000000000000000000000000000000000000..575a945c3b104ee5f225c2f7bafea797092d0bed --- /dev/null +++ b/db/schema_migrations/20251217173006 @@ -0,0 +1 @@ +d5f7b6ca821ad5b3f77801366e3c9bbaa1e47979cdd7cbe3170be2bb777a2b5f \ No newline at end of file