Validate NOT NULL on status_check_responses sharding key
What does this MR do and why?
Validate the NOT NULL constraint for the sharding key on status_check_responses
- Async validation is verified to be complete on postgres.ai via
\d+ status_check_responses(no shareable link) - No
presence: truevalidation on the model because the column is also populated with a "BEFORE INSERT OR UPDATE" trigger.- Before being committed, the database will fill the column if its null.
- Applied pipeline:skip-check-migrations as reverting this migration is intended to be #no-op. Rolling back wouldn't restore structure.sql to its previous state.
References
- Organization Isolation and Sharding Keys: https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/organization/isolation/
- Sharding Key (Cells) Development Guide: https://docs.gitlab.com/ee/development/cells/#defining-a-sharding-key-for-all-cell-local-tables
- Related to #493768 (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
N/A
How to set up and validate locally
N/A
Edited by Shane Maglangit