Skip to content

Commit 080ea3b

Browse files
author
Ido Shamun
committed
refactor: set default charset to utf8mb4 to support emojis
1 parent dd782d5 commit 080ea3b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/config.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const getMysqlConfig = () => {
66
user: process.env.MYSQL_USER,
77
password: process.env.MYSQL_PASSWORD,
88
database: process.env.MYSQL_DATABASE,
9+
charset: 'utf8mb4',
910
};
1011

1112
if (process.env.MYSQL_INSTANCE && process.env.NODE_ENV === 'production') {

test/fixtures/posts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const input = [
1717
},
1818
{
1919
id: '2',
20-
title: 'Post #2',
20+
title: 'Style your Terminal better by mastering these settings 🤩\\xF0\\x9F\\xA4\\xA9',
2121
url: 'https://myblog.com/post2.html',
2222
publicationId: publications[1].id,
2323
createdAt: new Date(2017, 10, 21, 15, 11, 10),

0 commit comments

Comments
 (0)