Skip to content

Drop taggings index if exists during migration

Patrick Bair requested to merge pb-taggings-conditionally-drop-index into master

What does this MR do and why?

Add IF EXISTS clause to DROP INDEX so they don't cause the migration to fail if the table is missing any of the indexes. This is a frequently reported customer problem when running the finalization migration for taggings, so we handle that case first.

The original MR that added this migration !66625 (merged) was released in %14.3, so we'll also backport to that version.

We can do the rest of migrations in a follow-up MR, since they seem to be lower priority fixes.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

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

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Patrick Bair

Merge request reports