Add personal_namespace_id column to events

What does this MR do and why?

This new column will be used for a composite sharding key on group_id/project_id/personal_namespace_id.

This MR also prepares async index creation for index on the new column, as it takes between 40 and 70 minutes to be created in the database testing pipeline. The index will be created synchronously in a subsequent MR.

See #462801 (closed).

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #462801 (closed)

Edited by Krasimir Angelov

Merge request reports

Loading