Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20200210062432_schedule_link_lfs_objects.rb')
-rw-r--r--db/post_migrate/20200210062432_schedule_link_lfs_objects.rb23
1 files changed, 1 insertions, 22 deletions
diff --git a/db/post_migrate/20200210062432_schedule_link_lfs_objects.rb b/db/post_migrate/20200210062432_schedule_link_lfs_objects.rb
index c955639c259..b401065dd94 100644
--- a/db/post_migrate/20200210062432_schedule_link_lfs_objects.rb
+++ b/db/post_migrate/20200210062432_schedule_link_lfs_objects.rb
@@ -4,32 +4,11 @@ class ScheduleLinkLfsObjects < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
- MIGRATION = 'LinkLfsObjects'
- BATCH_SIZE = 1_000
disable_ddl_transaction!
- class Project < ActiveRecord::Base
- include EachBatch
-
- self.table_name = 'projects'
- end
-
def up
- fork_network_members =
- Gitlab::BackgroundMigration::LinkLfsObjects::ForkNetworkMember
- .select(1)
- .with_non_existing_lfs_objects
- .where('fork_network_members.project_id = projects.id')
-
- forks = Project.where('EXISTS (?)', fork_network_members)
-
- queue_background_migration_jobs_by_range_at_intervals(
- forks,
- MIGRATION,
- BackgroundMigrationWorker.minimum_interval,
- batch_size: BATCH_SIZE
- )
+ # no-op as background migration being schedule times out in some instances
end
def down