diff options
author | Mario de la Ossa <mdelaossa@gitlab.com> | 2018-10-02 18:22:46 +0300 |
---|---|---|
committer | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-10-02 18:46:23 +0300 |
commit | 37d5a604381cc0df3b4aa830eb66a1ec67474fc1 (patch) | |
tree | 54c8c5b8c002fbfe6201868e1903f55883ce1927 | |
parent | d5184e0d8b48bc221e1ea401b9171db07959b50c (diff) |
Fix rename_login_root_namespaces post migration
-rw-r--r-- | changelogs/unreleased/51782-fix_rename_login_namespace_migration.yml | 5 | ||||
-rw-r--r-- | db/post_migrate/20180816193530_rename_login_root_namespaces.rb | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/changelogs/unreleased/51782-fix_rename_login_namespace_migration.yml b/changelogs/unreleased/51782-fix_rename_login_namespace_migration.yml new file mode 100644 index 00000000000..692edb5ded4 --- /dev/null +++ b/changelogs/unreleased/51782-fix_rename_login_namespace_migration.yml @@ -0,0 +1,5 @@ +--- +title: Fix migration to avoid an exception during upgrade +merge_request: 22055 +author: +type: fixed diff --git a/db/post_migrate/20180816193530_rename_login_root_namespaces.rb b/db/post_migrate/20180816193530_rename_login_root_namespaces.rb index b0c1fb98fa8..4ab1250473f 100644 --- a/db/post_migrate/20180816193530_rename_login_root_namespaces.rb +++ b/db/post_migrate/20180816193530_rename_login_root_namespaces.rb @@ -5,6 +5,8 @@ class RenameLoginRootNamespaces < ActiveRecord::Migration DOWNTIME = false + disable_ddl_transaction! + # We're taking over the /login namespace as part of a fix for the Jira integration def up disable_statement_timeout do |