summaryrefslogtreecommitdiff
path: root/db/post_migrate/20230201014238_backfill_system_note_metadata_note_id_for_bigint_conversion.rb
blob: df24b755b7fe50e30573d8bc5bc75e6d50f511af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class BackfillSystemNoteMetadataNoteIdForBigintConversion < Gitlab::Database::Migration[2.1]
  TABLE = :system_note_metadata
  COLUMNS = %i[note_id]

  restrict_gitlab_migration gitlab_schema: :gitlab_main

  def up
    backfill_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end

  def down
    revert_backfill_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
end