Disable timeout while removing services
On GitLab.com this migration could take about 3 minutes. Disabling the statement we know we have enough time to complete this. Fixes #25976
This commit is contained in:
parent
796b5b575f
commit
269bc74506
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@ class RemoveUnneededServices < ActiveRecord::Migration
|
|||
DOWNTIME = false
|
||||
|
||||
def up
|
||||
disable_statement_timeout
|
||||
|
||||
execute("DELETE FROM services WHERE active = false AND properties = '{}';")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue