Commit 471e2d42 authored by Andreas Brandl's avatar Andreas Brandl

Remove historic minergate trigger

This is only relevant for for GitLab.com.

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/322110
parent 72a1d2c7
---
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