Fix statements timeout in manual actions migration
This commit is contained in:
parent
5069255681
commit
0e9a5e73ca
1 changed files with 4 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue