Merge pull request #223 from geehon/master

support emoji
This commit is contained in:
Stefan Scherer 2022-04-11 16:53:42 +02:00 committed by GitHub
commit 1fd29da9be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,11 +29,12 @@ async function init() {
user, user,
password, password,
database, database,
charset: 'utf8mb4',
}); });
return new Promise((acc, rej) => { return new Promise((acc, rej) => {
pool.query( 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 => { err => {
if (err) return rej(err); if (err) return rej(err);