Add NOT NULL constraint to ci_runner_namespaces.namespace_id
What does this MR do and why?
This MR completes the implementation of #446169 (closed) in %17.2 by adding NOT NULL
constraint to ci_runner_namespaces.namespace_id
. The previous MRs in %17.1 already validated that no new records could be created with nil values, and deleted invalid records from the database.
This MR also removes the "relaxed sharding key" exception in spec/lib/gitlab/database/sharding_key_spec.rb
Changelog: changed
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
n/a
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
n/a
Edited by Pedro Pombeiro