From 27e7ef70f713341b3cd234b7108b4423d7b04ed0 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 2 May 2019 18:22:00 +0800 Subject: [PATCH] sql --- sql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql.go b/sql.go index 0de24bc..20be03f 100644 --- a/sql.go +++ b/sql.go @@ -58,7 +58,7 @@ func initDB() { name VARCHAR(80) NOT NULL, guild_id SMALLINT(5), PRIMARY KEY (id), - ) ENGINE = InnoDB ROW_FORMAT = DEFAULT CHARSET=utf8mb4_unicode_ci;`) + ) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;`) if err != nil { log.Fatal(err) } @@ -69,7 +69,7 @@ func initDB() { direction ENUM('incoming', 'outgoing'), text VARCHAR(4096) NOT NULL, FOREIGN KEY (user_id) REFERENCES user(id) ON DELETE CASCADE - ) ENGINE = InnoDB ROW_FORMAT = DEFAULT CHARSET=utf8mb4_unicode_ci;`) + ) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;`) if err != nil { log.Fatal(err) }