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

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

class InitializeConversionOfSuggestionsNoteIdToBigint < Gitlab::Database::Migration[2.1]
  TABLE = :suggestions
  COLUMNS = %i[note_id]

  enable_lock_retries!

  def up
    initialize_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end

  def down
    revert_initialize_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
end