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

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

class CleanupBigintConversionForEpicUserMentionsForSelfManaged < Gitlab::Database::Migration[2.1]
  include Gitlab::Database::MigrationHelpers::ConvertToBigint

  enable_lock_retries!

  def up
    return if com_or_dev_or_test_but_not_jh?

    cleanup_conversion_of_integer_to_bigint(:epic_user_mentions, [:note_id])
  end

  def down
    # no-op
  end
end