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

20231207220954_finalize_backfill_project_statistics_storage_size_without_pipeline_artifacts_si.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ab89def9065b898808976761fb642326ba8be56c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

class FinalizeBackfillProjectStatisticsStorageSizeWithoutPipelineArtifactsSi < Gitlab::Database::Migration[2.2]
  milestone '16.7'

  disable_ddl_transaction!

  restrict_gitlab_migration gitlab_schema: :gitlab_main

  def up
    ensure_batched_background_migration_is_finished(
      job_class_name: 'BackfillProjectStatisticsStorageSizeWithoutPipelineArtifactsSizeJob',
      table_name: :project_statistics,
      column_name: :project_id,
      job_arguments: [],
      finalize: true
    )
  end

  def down; end
end