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

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

class BackfillNotesIdForBigintConversion < Gitlab::Database::Migration[2.1]
  TABLE = :notes
  COLUMNS = %i[id]

  restrict_gitlab_migration gitlab_schema: :gitlab_main

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

  def down
    revert_backfill_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
end