summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2016-12-27 11:10:13 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-12-27 11:10:15 +0100
commit269bc745063319cf0004de445c540af8d8c61ce5 (patch)
treec24adaef41d5e62541412c62ad74eb6cac2cd16e /db
parent796b5b575fe9ce54a4bee26cf389f135313e4d41 (diff)
downloadgitlab-ce-269bc745063319cf0004de445c540af8d8c61ce5.tar.gz
Disable timeout while removing serviceszj-disable-timeout-migration
On GitLab.com this migration could take about 3 minutes. Disabling the statement we know we have enough time to complete this. Fixes #25976
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20161221140236_remove_unneeded_services.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/post_migrate/20161221140236_remove_unneeded_services.rb b/db/post_migrate/20161221140236_remove_unneeded_services.rb
index a94ccc43a41..6b7e94c8641 100644
--- a/db/post_migrate/20161221140236_remove_unneeded_services.rb
+++ b/db/post_migrate/20161221140236_remove_unneeded_services.rb
@@ -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