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

[5.0.3] Fixes to database collation migrations #23809

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

roji
Copy link
Member

@roji roji commented Jan 4, 2021

Fixes #23794

Description

When generating migrations, if a database collation is configured and non was previously configured, a mangled migration is generated which does not compile.

Customer Impact

Any user trying to explicitly set a collation on an existing database will fail and would have to manually edit generated migration source code.

How found

Customer reported on 5.0.2.

Test coverage

We have added test coverage in this PR.

Regression?

No, collation support was only introduced in 5.0.

Risk

Low. Only affects the faulty code path, which is part of design-time migration generation (no runtime impact).

@roji roji requested a review from a team January 4, 2021 23:59
@roji roji changed the base branch from main to release/5.0 January 4, 2021 23:59
@ajcvickers ajcvickers added this to the 5.0.x milestone Jan 5, 2021
@ajcvickers ajcvickers modified the milestones: 5.0.x, 5.0.3 Jan 5, 2021
@ajcvickers
Copy link
Contributor

Approved by Tactics for 5.0.3; please wait for the branch to open before merging.

@wtgodbe wtgodbe merged commit f542fba into release/5.0 Jan 13, 2021
@wtgodbe wtgodbe deleted the DatabaseCollationMigration5.0 branch January 13, 2021 17:16
@roji roji removed the blocked label Jan 13, 2021
@ajcvickers ajcvickers removed this from the 5.0.3 milestone Jan 14, 2021
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.

Mangled migration generated when altering database collation
5 participants