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

Use UTF-8 for MySQL/MariaDB DBs by default #1178

Merged

Conversation

DEVTomatoCake
Copy link
Member

@DEVTomatoCake DEVTomatoCake commented Aug 17, 2024

Modifies @Entity() statements to specify the charset and collation to be utf8mb4, to allow support for e.g. emojis which is especially important in messages.

Tested on MariaDB & Postgres (doesn't seem to have any impact).

No migration script currently because it's difficult to modify the charset of rows with foreign keys.

Reference on why per-entity instead of globally (TLDR: it doesn't work): typeorm/typeorm#2175

Fixes #1154

@MaddyUnderStars MaddyUnderStars merged commit 9bcc178 into spacebarchat:master Aug 22, 2024
3 checks passed
@DEVTomatoCake DEVTomatoCake deleted the fix/1154-mysql-charset branch August 22, 2024 03:20
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.

Use UTF8 for MySQL/MariaDB charset/collation
2 participants