Skip to content

Fix to remove foreign key for geo_event_log

Tianwen Chen requested to merge 439935-fix-remove-foreign-key into master

What does this MR do and why?

Fix migration db/post_migrate/20240425170527_remove_foreign_keys_geo_event_log.rb as it's breaking the db testing, e.g. https://ops.gitlab.net/gitlab-com/database-team/gitlab-com-database-testing/-/jobs/13813871

If we check the foreign key name in ci database, the foreign key name is actually fk_rails_78a6492f68 instead of fk_78a6492f68 referencing table geo_repository_updated_events , see https://console.postgres.ai/gitlab/gitlab-production-ci/sessions/28078/commands/87450

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #439935 (closed)

Edited by Tianwen Chen

Merge request reports