Prepare for vulnerability_occurrences.uuid column type change to UUID

What does this MR do and why?

This MR does two things:

  1. Makes our migration helpers a little bit more flexible when it comes to creating triggers when changing column types
  2. Prepares for vulnerability_occurrences.uuid column type change using above helpers

Related issue

Related to #335708 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading