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

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

class DropTemporaryColumnsAndTriggersForTaggings < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  TABLE = 'taggings'
  COLUMNS = %w(id taggable_id)

  # rubocop:disable Migration/WithLockRetriesDisallowedMethod
  def up
    cleanup_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
  # rubocop:enable Migration/WithLockRetriesDisallowedMethod

  def down
    restore_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
end