Add not null constraint
What does this MR do and why?
- Adds NOT NULL constraint on namespace_id on gitlab_subscription_histories table
- Adds sharding-key for gitlab_subscription_histories
- Skips foreign key validation (ref comment: https://gitlab.com/gitlab-org/gitlab/-/issues/462598#note_1949768698)
Reference MR to clean up existing invalid records: Add post_migrate to remove invalid record (!156518 - merged)
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.
Related to #462598+
Edited by Bishwa Hang Rai