mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 00:33:03 +08:00
📦 MySQL: Remove weird query that was breaking things
This commit is contained in:
@@ -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?
|
||||
}
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user