debian-mirror-gitlab/db/post_migrate/20210906130643_drop_temporary_columns_and_triggers_for_taggings.rb
2021-11-18 22:05:49 +05:30

19 lines
472 B
Ruby

# 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