Use project_id as sharding key for packages_nuget_symbols

What does this MR do and why?

Use project_id as sharding key for packages_nuget_symbols

  • Finalize the background migration to backfill project_id in the packages_nuget_symbols table.
  • Add project_id validation present to the Packages::Nuget::Symbol model.
  • Add NOT NULL constraint to the project_id column in the packages_nuget_symbols table.
  • Use project_id as a sharding key for the packages_nuget_symbols table.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

No.

How to set up and validate locally

I don't think that there's something to validate.

Related to #461803 (closed)

Edited by Dzmitry (Dima) Meshcharakou

Merge request reports

Loading