Backfill `pipeline.project_id` to `dependency_list_export.project_id`
What does this MR do and why?
project_id
will be used as the sharding key for cells for pipeline
dependency list exports. Since pipelines are in a different database,
we need to write a custom migration which executes one query to get the
project ids from the CI database, and then another query to update the
dependency list exports in the main database.
This migration should finish quickly because we delete dependency list exports once we are done with them, which means there are only about 100 rows in the table.
Relates to: #454947 (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.