summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-06-21 15:37:21 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-06-26 17:49:30 +0200
commit79cdacc5d464cfb47076efe27e3d6ffe32ff1dad (patch)
treedc4b2fa79fc682a295c0ea687740af9001caacb9 /db
parent66ba0b0a3444eb5063803df316be1cd14e3ef605 (diff)
downloadgitlab-ce-79cdacc5d464cfb47076efe27e3d6ffe32ff1dad.tar.gz
Disable statement timeout
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb b/db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb
index 9ec59913b66..9441b236c8d 100644
--- a/db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb
+++ b/db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb
@@ -98,12 +98,16 @@ class RenameAllReservedPathsAgain < ActiveRecord::Migration
].freeze
def up
+ disable_statement_timeout
+
TOP_LEVEL_ROUTES.each { |route| rename_root_paths(route) }
PROJECT_WILDCARD_ROUTES.each { |route| rename_wildcard_paths(route) }
GROUP_ROUTES.each { |route| rename_child_paths(route) }
end
def down
+ disable_statement_timeout
+
revert_renames
end
end