From 1e69a9c81dd7c2d9df69dc76da9aced8f3af721a Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 2 Nov 2020 20:15:09 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20MySQL:=20Remove=20weird=20query?= =?UTF-8?q?=20that=20was=20breaking=20things?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/mysql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql/mysql.go b/mysql/mysql.go index 02d3224b..e126bd87 100644 --- a/mysql/mysql.go +++ b/mysql/mysql.go @@ -24,8 +24,8 @@ type Storage struct { var ( dropQuery = "DROP TABLE IF EXISTS %s;" initQuery = []string{ - "CREATE TABLE IF NOT EXISTS %s ( `id` VARCHAR(64) NOT NULL DEFAULT '' , `data` TEXT NOT NULL , `exp` BIGINT NOT NULL DEFAULT '0' , PRIMARY KEY (`id`));", - "CREATE INDEX IF NOT EXISTS exp ON %s (exp);", + "CREATE TABLE IF NOT EXISTS %s ( `id` VARCHAR(64) NOT NULL DEFAULT '' , `data` TEXT NOT NULL , `exp` BIGINT NOT NULL DEFAULT '0' , PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;", + // "CREATE INDEX IF NOT EXISTS exp ON %s (exp);", // This was causing syntax errors with MySQL in Docker, and it works without it sooo..... I guess remove it? } )