-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: allow for pre-19.2 foreign keys in table validation
We introduced a bug in v20.2 where we failed to upgrade referenced descriptors' FK representations from pre-19.2 descriptors when validating cross-references for tables, leading to validation failures that would make the table unusable. This PR gets rid of the validation errors by having `Validate()` account for pre-19.2-style foreign keys on referenced table descriptors. Release note (bug fix): Fixes a bug where tables and metadata were unavailable due to spurious `missing fk back reference` validation errors.
- Loading branch information
Showing
2 changed files
with
224 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters