Background Migration to backfill dismissal_reason to existing vulnerability_reads
Once the dismissal_reason
column has been successfully applied to the vulnerability_reads
table and the application code updated to ensure that this value is appropriately populated when a Vulnerability::StateTransition
is created, we will need to write a Background Migration to backfill all existing Vulnerability::Read
records with their dismissal_reason values.
Implementation Plan
-
database Write a background migration which fills the Vulnerability::Read#dismissal_reason
with the latest correspondingVulnerability::StateTransition#dismissal_reason
Edited by Michał Zając