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

20231016002919_cleanup_bigint_conversion_for_vulnerability_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: 253767ddc83e9c6cce59980120b2af88cec0cd24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

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

  def down
    # no-op
  end
end