Skip to content

Add reverse lock order option to FK removal

Adam Hegyi requested to merge 350271-remove-fk-with-reverese-lock-order into master

What does this MR do and why?

This MR adds the reverse_lock_order option to the remove_foreign_key_if_exists helper to avoid deadlock errors for high-traffic tables.

Note: The helper is tested indirectly several times by other migration tests.

MR acceptance checklist

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

Related to #350271 (closed)

Edited by Adam Hegyi

Merge request reports

Loading