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

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

class BackfillCiPipelinesAutoCanceledByIdConversion < Gitlab::Database::Migration[2.1]
  restrict_gitlab_migration gitlab_schema: :gitlab_ci

  TABLE = :ci_pipelines
  COLUMNS = %i[auto_canceled_by_id]
  SUB_BATCH_SIZE = 250

  def up
    backfill_conversion_of_integer_to_bigint(TABLE, COLUMNS, sub_batch_size: SUB_BATCH_SIZE)
  end

  def down
    revert_backfill_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
end