diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-01 16:00:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-01 16:00:51 +0000 |
commit | b2e9603724fc002b87cc23926a613b4e7ab10a42 (patch) | |
tree | 53b0a2aa2157561545516f0d2baa50de81094fb5 /db/post_migrate | |
parent | a5131ced0f04bd5e8bc58fc54b60f5e93ed93b4c (diff) | |
download | gitlab-ce-b2e9603724fc002b87cc23926a613b4e7ab10a42.tar.gz |
Add latest changes from gitlab-org/gitlab@14-3-stable-ee
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20210907211557_finalize_ci_builds_bigint_conversion.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/post_migrate/20210907211557_finalize_ci_builds_bigint_conversion.rb b/db/post_migrate/20210907211557_finalize_ci_builds_bigint_conversion.rb index 872eef5fd31..02f98833703 100644 --- a/db/post_migrate/20210907211557_finalize_ci_builds_bigint_conversion.rb +++ b/db/post_migrate/20210907211557_finalize_ci_builds_bigint_conversion.rb @@ -103,6 +103,11 @@ class FinalizeCiBuildsBigintConversion < Gitlab::Database::Migration[1.0] remove_foreign_key(:ci_resources, TABLE_NAME, column: :build_id, name: 'fk_rails_e169a8e3d5') end + # Remove this unexpected FK if it exists - https://gitlab.com/gitlab-org/gitlab/-/issues/341822 + if foreign_key_exists?(:ci_sources_pipelines, TABLE_NAME, column: :source_job_id, name: 'fk_3f0c88d7dc') + remove_foreign_key(:ci_sources_pipelines, TABLE_NAME, column: :source_job_id, name: 'fk_3f0c88d7dc') + end + swap_columns end |