diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-05 13:48:41 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-05 13:48:41 +0200 |
commit | 7a2ad70f0b143e3fd195e6e5c475a7b7350c527c (patch) | |
tree | 5db99bee162c55ecac92ad886474cffab8748602 /db | |
parent | 3326291f7e6c6b4452ca6aa4fc65faf1bd821220 (diff) | |
download | gitlab-ce-7a2ad70f0b143e3fd195e6e5c475a7b7350c527c.tar.gz |
Disable timeouts in foreign keys for stages migration
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20170526190708_create_foreign_keys_for_pipeline_stages.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/post_migrate/20170526190708_create_foreign_keys_for_pipeline_stages.rb b/db/post_migrate/20170526190708_create_foreign_keys_for_pipeline_stages.rb index 8a01de1fce6..5ae3c1ae098 100644 --- a/db/post_migrate/20170526190708_create_foreign_keys_for_pipeline_stages.rb +++ b/db/post_migrate/20170526190708_create_foreign_keys_for_pipeline_stages.rb @@ -6,6 +6,8 @@ class CreateForeignKeysForPipelineStages < ActiveRecord::Migration disable_ddl_transaction! def up + disable_statement_timeout + execute <<~SQL DELETE FROM ci_stages WHERE NOT EXISTS ( |