diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-03-16 14:43:15 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-03-16 14:58:44 +0300 |
commit | 1eb7df0ef2ce1d6c499ff865c48a3640b1f88678 (patch) | |
tree | 18032d16b94c3e0c5ce22917f6f53ca2f8cab4ab /db | |
parent | c0baaec245286dec0a20387a0e085c349816d2db (diff) |
Merge branch 'fix/gb/fix-timeouts-in-manual-actions-migration' into 'master'
Fix statements timeout in manual actions migration
Closes #29526
See merge request !9989
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20170306170512_migrate_legacy_manual_actions.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/post_migrate/20170306170512_migrate_legacy_manual_actions.rb b/db/post_migrate/20170306170512_migrate_legacy_manual_actions.rb index 9020e0d054c..ec6e8cdfc45 100644 --- a/db/post_migrate/20170306170512_migrate_legacy_manual_actions.rb +++ b/db/post_migrate/20170306170512_migrate_legacy_manual_actions.rb @@ -4,6 +4,8 @@ class MigrateLegacyManualActions < ActiveRecord::Migration DOWNTIME = false def up + disable_statement_timeout + execute <<-EOS UPDATE ci_builds SET status = 'manual', allow_failure = true WHERE ci_builds.when = 'manual' AND ci_builds.status = 'skipped'; @@ -11,6 +13,8 @@ class MigrateLegacyManualActions < ActiveRecord::Migration end def down + disable_statement_timeout + execute <<-EOS UPDATE ci_builds SET status = 'skipped', allow_failure = false WHERE ci_builds.when = 'manual' AND ci_builds.status = 'manual'; |