Prepare composite FK for vulnerability_occurrence_identifiers

What does this MR do and why?

Prepare composite FK for vulnerability_occurrence_identifiers

Adds partition_id column to vulnerability_occurrence_identifiers and introduces a composite foreign key (partition_id, identifier_id) -> vulnerability_identifiers(partition_id, id) NOT VALID. Schedules asynchronous validation of the new constraint via a post-deployment migration.

References

Related to #596858 (closed)

MR acceptance checklist

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

Merge request reports

Loading
Loading