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

Stop prefixing check constraints. #27142

Merged
merged 1 commit into from
Jan 8, 2022
Merged

Stop prefixing check constraints. #27142

merged 1 commit into from
Jan 8, 2022

Conversation

AndriySvyryd
Copy link
Member

Fixes #27059

Description

In 6.0 we started uniquifying check constraint names if there was a conflict in the database, but we also started adding a prefix to all names that didn't have a prefix that we recognized.

This was unexpected and unnecessary, so we decided to revert the prefixing change.

Customer impact

Users get a new migration changing all the check constraint names that don't follow the pattern. The workaround is to manually add overriding configuration for each check constraint.

How found

Customer report on 6.0.

Regression

Yes, From 5.0

Testing

Already present.

Risk

Low; only affects migrations. Also added quirk to revert to previous behavior.

@AndriySvyryd AndriySvyryd added this to the 6.0.x milestone Jan 7, 2022
@AndriySvyryd AndriySvyryd requested a review from a team January 7, 2022 19:08
@AndriySvyryd AndriySvyryd changed the base branch from main to release/6.0 January 7, 2022 19:13
@AndriySvyryd AndriySvyryd modified the milestones: 6.0.x, 6.0.2 Jan 8, 2022
@AndriySvyryd AndriySvyryd changed the title [release/6.0] Stop prefixing check constraints. Stop prefixing check constraints. Jan 8, 2022
@AndriySvyryd AndriySvyryd merged commit 16e1795 into release/6.0 Jan 8, 2022
@AndriySvyryd AndriySvyryd deleted the Issue27059 branch January 8, 2022 01:13
@ajcvickers ajcvickers removed this from the 6.0.2 milestone Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Did the naming convention change for HasCheckConstraint in v.6? Is this a breaking change?
3 participants