Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql/schemachanger: relax rules for setting constraint names #101105

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

fqazi
Copy link
Collaborator

@fqazi fqazi commented Apr 10, 2023

Previously, the rules for adding and removing constraint names were strict, which could lead to mixed version compatibility issues. Specifically, plans on the 23.1 branch could have names set in later stages violating a rule that said a constraint should be public/non-public with the name. To address this, this patch will relax these rules to have Precedence instead of SameStagePrecedence

Fixes: #100908

Release note: None

@fqazi fqazi requested a review from a team April 10, 2023 15:51
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@fqazi
Copy link
Collaborator Author

fqazi commented Apr 11, 2023

@chengxiong-ruan TFTR!

Previously, the rules for adding and removing constraint names
were strict, which could lead to mixed version compatibility issues.
Specifically, plans on the 23.1 branch could have names set in
later stages violating a rule that said a constraint should
be public/non-public with the name. To address this, this patch
will relax these rules to have Precedence instead of SameStagePrecedence

Fixes: cockroachdb#100908

Release note: None
@fqazi fqazi force-pushed the fixConstraintNamingRules branch from 8775eaa to af1d9cf Compare April 11, 2023 16:54
@fqazi fqazi requested a review from a team as a code owner April 11, 2023 16:54
@fqazi
Copy link
Collaborator Author

fqazi commented Apr 11, 2023

bors r+

@craig
Copy link
Contributor

craig bot commented Apr 11, 2023

Build succeeded:

@craig craig bot merged commit 5fd45da into cockroachdb:master Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

roachtest: schemachange/mixed-versions-compat failed
3 participants