diff options
Diffstat (limited to 'db/post_migrate/20200312134637_backfill_environment_id_on_deployment_merge_requests.rb')
-rw-r--r-- | db/post_migrate/20200312134637_backfill_environment_id_on_deployment_merge_requests.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/db/post_migrate/20200312134637_backfill_environment_id_on_deployment_merge_requests.rb b/db/post_migrate/20200312134637_backfill_environment_id_on_deployment_merge_requests.rb new file mode 100644 index 00000000000..77cb1ae8508 --- /dev/null +++ b/db/post_migrate/20200312134637_backfill_environment_id_on_deployment_merge_requests.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +class BackfillEnvironmentIdOnDeploymentMergeRequests < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + # no-op + + # this migration is deleted because there is no foreign key for + # deployments.environment_id and this caused a failure upgrading + # deployments_merge_requests.environment_id + # + # Details on the following issues: + # * https://gitlab.com/gitlab-org/gitlab/-/issues/217191 + # * https://gitlab.com/gitlab-org/gitlab/-/issues/26229 + end + + def down + # no-op + + # this migration is designed to delete duplicated data + end +end |