Add triggers and backfill work_item_positions

What does this MR do and why?

Creates a trigger to sync issues.relative_position to work_item_positions.relative_position.

Also enqueues a batched background migration that backfills the work_item_positions table.

Query for backfill: https://postgres.ai/console/gitlab/gitlab-production-main/sessions/50610/commands/150116

References

Related to #594236

MR acceptance checklist

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

Edited by Heinrich Lee Yu

Merge request reports

Loading
Loading