summaryrefslogtreecommitdiff
path: root/db/migrate/20230201014223_initialize_conversion_of_system_note_metadata_note_id_to_bigint.rb
blob: ec84f1cb946df8bdf5ac39bc02724500cc02c622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class InitializeConversionOfSystemNoteMetadataNoteIdToBigint < Gitlab::Database::Migration[2.1]
  TABLE = :system_note_metadata
  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