Add NOT NULL constraint to group_wiki_repository_states.group_id for Geo verification state migration

Summary

Add the NOT NULL constraint to the group_id sharding key column in the group_wiki_repository_states table to complete the migration strategy for Geo verification state tables.

Background

As part of the Geo verification state tables migration strategy for Protocell organization moves, we need to mark Geo verification state tables as gitlab_main_org instead of gitlab_main_cell_local/gitlab_ci_cell_local. This requires completing the sharding key work on these tables.

Current Status

Step Status
Sharding Key Defined group_id
Backfill Complete
Finalize Complete
NOT NULL Constraint Pending

Sharding Key Issue: #550702 (closed)

Tasks

  • Add NOT NULL constraint to group_id column
  • Update table schema classification to gitlab_main_org in the db/docs YML file.
  • Add the sharding_key attribute in the db/docs YML file.

References

Edited by 🤖 GitLab Bot 🤖