Commit 688e297f authored by Adam Hegyi's avatar Adam Hegyi

Revert "Remove historic minergate trigger"

This reverts commit 471e2d42.
parent c3111e93
---
title: Remove historic minergate trigger (GitLab.com only)
merge_request: 54910
author:
type: other
# frozen_string_literal: true
class RemoveMinergateTriggerOnGitLabCom < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
return unless Gitlab.com?
with_lock_retries do
execute <<~SQL
DROP TRIGGER IF EXISTS ci_builds_block_minergate ON ci_builds;
SQL
end
execute <<~SQL
DROP FUNCTION IF EXISTS make_build_to_be_stuck_with_lock_version();
DROP FUNCTION IF EXISTS make_build_to_be_stuck();
SQL
end
def down
# no-op
end
end
5fa0e89f9d7715309f6fd9808a07c34bcca0d556a2a4a2841f419b3279db8759
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment