Skip to content

Method to temporarily disable constraints in specs

Alex Pooley requested to merge ap-without-constraint into master

What does this MR do and why?

Sometimes, such as in migration specs, we need to add data to the database that violates current database constraints. This MR will temporarily disable constraints to facilitate working with invalid data.

An example of this scenario is at !93240 (comment 1075242331)

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.

Related to !93240 (merged)

Edited by Alex Pooley

Merge request reports

Loading