[go: up one dir, main page]

Define a sharding key for snippet_repositories

Table snippet_repositories should meet the guidelines for sharding so it can be linked to an Organization: https://docs.gitlab.com/development/organization/#defining-a-sharding-key-for-all-organizational-tables

When the work is complete, the new column should fulfil the following criteria:

  • has no default
  • is not nullable
  • has a foreign key to organizations

Deliverables

[UPDATE]

It turns out this case is more complex than the original steps we have outlined here. I have added the remaining steps below. I will create new issues for each of them to link to.

I have copied these steps from @olaoluro's similar work here: #522958 (closed) as we have established it is an acceptable outline for this work (see comment on this issue: #550705 (comment 2758040195)). I have added a few extra steps that were discovered along the way.

Edited by Hunter Stewart