Convert routes.namespace_id to a loose foreign key
What does this MR do and why?
namespaces
is a main_cell table now, and routes
is a main_clusterwide table.
Since these tables belong to 2 different databases now, any foreign keys that exists between these 2 tables should be converted to Loose foreign keys, which is what this MR does.
I've grepped the usage of routes.namespace_id
in the code, and there does not appear to be any cases where a routes.namespace_id
pointing to a non-existing namespace could cause trouble, so we are safe
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #420869 (closed)