Backport: Add denormalised columns to statuses table

Backport of !691 (merged), plus migration and test.

Merge request reports

Loading