Skip to content

Replace the users foreign key on ml experiments

euko requested to merge 416588-set-user_id-null-on-delete into master

What does this MR do and why?

ml_experiments table's foreign key user_id referencing users table's id did not have ON DELETE set.

This swaps the FK with a new one that uses ON DELETE SET NULL.

The current FK is blocking the user deletion process. Related to #416588

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 euko

Merge request reports