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) }