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

Bug 1328659 - Add support for utf8=utf8mb4 (switches to dynamic/compressed row format, and changes charset to utf8mb4) ❤️ #282

Merged
merged 8 commits into from
Jul 12, 2018

Conversation

dylanwh
Copy link
Contributor

@dylanwh dylanwh commented Dec 2, 2017

No description provided.

@dylanwh dylanwh changed the title Bug 1253535 - Change rowformat to dynamic, and convert all columns to utf8mb4 Bug 1328659 - Add support for utf8=utf8mb4 (switches to dynamic/compressed row format, and changes charset to utf8mb4) Jun 26, 2018
@dylanwh dylanwh requested a review from dklawren June 26, 2018 20:25
Copy link
Collaborator

@dklawren dklawren left a comment

Choose a reason for hiding this comment

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

Minor changes. Otherwise conversion locally went well and am able to enter emojis into text fields.

= $global{innodb_file_format} eq 'Barracuda'
&& $global{innodb_file_per_table} eq 'ON'
&& $global{innodb_large_prefix} eq 'ON';

Copy link
Collaborator

Choose a reason for hiding this comment

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

2 space or more indent here please.

default => '0',
type => 't',
choices => [ '1', 'utf8', 'utf8mb4' ],
default => 'utf8',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be instead:

type => 's',
choices => [ 'utf8', 'utf8mb4' ],
default => 'utf8',

@dylanwh dylanwh requested a review from dklawren July 10, 2018 19:48
@dylanwh dylanwh dismissed dklawren’s stale review July 10, 2018 19:49

addressed these requests

AND TABLE_COLLATION NOT LIKE 'utf8%'
LIMIT 1", undef, $db_name);
AND TABLE_COLLATION != ?
LIMIT 1", undef, $db_name, $collate);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dklawren this is one of those changes I talked about. Before it was a prefix match against 'utf8', so if it was utf8mb4_unicode_blah, it would still match. In prod it appears it is only utf8_general_ci

Copy link
Collaborator

@dklawren dklawren left a comment

Choose a reason for hiding this comment

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

r=dkl

@dklawren
Copy link
Collaborator

Checked out the latest changes and after restart of DB everything checked out. r=dkl

@dylanwh dylanwh merged commit a671f4e into mozilla-bteam:master Jul 12, 2018
@dylanwh dylanwh changed the title Bug 1328659 - Add support for utf8=utf8mb4 (switches to dynamic/compressed row format, and changes charset to utf8mb4) Bug 1328659 - Add support for utf8=utf8mb4 (switches to dynamic/compressed row format, and changes charset to utf8mb4) ❤️ Jul 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants