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

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

class CleanupBigintConversionForEventsForSelfManaged < 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(:events, [:target_id])
  end

  def down
    # no-op
  end
end