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

20231016003919_cleanup_bigint_conversion_for_commit_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: 984e6df9a293a5094bf1f88ab8617d4fc21e74da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class CleanupBigintConversionForCommitUserMentionsForSelfManaged < 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(:commit_user_mentions, [:note_id])
  end

  def down
    # no-op
  end
end