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

Updates migrations to check collation/charset before trying to fix it #4325

Merged
merged 2 commits into from
Dec 13, 2022

Conversation

mgdelacroix
Copy link
Contributor

Summary

This PR obtains the collation and charset of the Boards tables and only fixes them if necessary. Currently it maintains the approach of fixing the issue automatically, but I'm happy to update it to notify the admin instead if that's the consensus.

@mgdelacroix mgdelacroix added the 2: Dev Review Requires review by a core committer label Dec 13, 2022
@sbishel sbishel added the CherryPick/Approved Meant for the quality or patch release tracked in the milestone label Dec 13, 2022
@sbishel sbishel added this to the v7.5 milestone Dec 13, 2022
Copy link
Contributor

@wiggin77 wiggin77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
@sbishel sbishel merged commit f2d98f9 into main Dec 13, 2022
@sbishel sbishel deleted the mysql-collation-check-fix branch December 13, 2022 19:28
@mattermod
Copy link
Contributor

Cherry pick is scheduled.

mattermost-build pushed a commit to mattermost-build/focalboard that referenced this pull request Dec 13, 2022
…mattermost-community#4325)

* Updates migrations to check collation/charset before trying to fix it

* Update server/services/store/sqlstore/data_migrations.go

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
(cherry picked from commit f2d98f9)
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Dec 13, 2022
sbishel pushed a commit that referenced this pull request Dec 13, 2022
…#4325) (#4331)

* Updates migrations to check collation/charset before trying to fix it

* Update server/services/store/sqlstore/data_migrations.go

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
(cherry picked from commit f2d98f9)

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
mgdelacroix added a commit that referenced this pull request Dec 19, 2022
…#4325)

* Updates migrations to check collation/charset before trying to fix it

* Update server/services/store/sqlstore/data_migrations.go

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants