Commit 8c5a3ffe authored by Yorick Peterse's avatar Yorick Peterse

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
parents 3735266d 0e9a5e73
......@@ -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';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment