Background migration to insert data into new audit events tables
Background
As part of &13370 cells migration, we will need to split our audit_events
table into 4 new tables:
- user_audit_event
- project_audit_event
- group_audit_event
- instance_audit_event
The objective of this issue is to start transferring current audit events data into new tables. We will be enabling sync of live data into new tables with the issue: #454175 So this background migration should only sync the data not present in these new tables.
Proposal
We can use batched background migration https://docs.gitlab.com/ee/development/database/batched_background_migrations.html for this.
Edited by Harsimar Sandhu