Skip to content

Validate NOT NULL on vulnerability_finding_signatures sharding key

What does this MR do and why?

Validate the NOT NULL constraint for the sharding key on vulnerability_finding_signatures

  • Async validation is verified to be complete on postgres.ai via \d+ vulnerability_finding_signatures (no shareable link)
  • No presence: true validation on the model because the column is also populated with a "BEFORE INSERT OR UPDATE" trigger.
    • Before being committed, the database will fill the column if its null.
  • Applied pipeline:skip-check-migrations as reverting this migration is intended to be #no-op. Rolling back wouldn't restore structure.sql to its previous

References

MR acceptance checklist

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

Screenshots or screen recordings

N/A

How to set up and validate locally

N/A

Edited by Shane Maglangit

Merge request reports

Loading