Add application and DB layer validations for flag_type uniqueness
Introducing a compound unique index on `vulnerability_occurrence_id`, `flag_type`, and `origin` columns will help us utilizing PostgreSQL's upsert functionality and will prevent inserting the same flag twice. Changelog: added EE: true
Showing
Please register or sign in to comment