summaryrefslogtreecommitdiff
path: root/db/post_migrate/20230411153310_cleanup_bigint_conversion_for_sent_notifications.rb
blob: e5f690a0a5a44b1079ed5524b25cdf709867d2ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class CleanupBigintConversionForSentNotifications < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  TABLE = :sent_notifications
  COLUMNS = [:id]

  def up
    cleanup_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end

  def down
    restore_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
end