support emoji
This commit is contained in:
parent
42f8dbe70c
commit
b37be73687
@ -29,11 +29,12 @@ async function init() {
|
||||
user,
|
||||
password,
|
||||
database,
|
||||
charset: 'utf8mb4',
|
||||
});
|
||||
|
||||
return new Promise((acc, rej) => {
|
||||
pool.query(
|
||||
'CREATE TABLE IF NOT EXISTS todo_items (id varchar(36), name varchar(255), completed boolean)',
|
||||
'CREATE TABLE IF NOT EXISTS todo_items (id varchar(36), name varchar(255), completed boolean) DEFAULT CHARSET utf8mb4',
|
||||
err => {
|
||||
if (err) return rej(err);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user