From 4a2bf99b04f11a32db3d1ca5d5bcd0ff07666d75 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Thu, 5 Oct 2017 14:42:51 +0200 Subject: [PATCH] chore: add missing MySQL index on movement table --- install/data/sql.sql | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/install/data/sql.sql b/install/data/sql.sql index 3b2dd9cd..312120ff 100644 --- a/install/data/sql.sql +++ b/install/data/sql.sql @@ -1041,21 +1041,23 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%medal` ( -- CREATE TABLE IF NOT EXISTS `%PREFIX%movement` ( - `moveid` int(11) NOT NULL AUTO_INCREMENT, - `sort_type` tinyint(4) NULL DEFAULT '0', - `from` int(11) NULL DEFAULT '0', - `to` int(11) NULL DEFAULT '0', - `ref` int(11) NULL DEFAULT '0', - `ref2` int(11) NULL DEFAULT '0', - `starttime` int(11) NULL DEFAULT '0', - `endtime` int(11) NULL DEFAULT '0', - `proc` tinyint(1) NULL DEFAULT '0', - `send` tinyint(1) NULL, - `wood` int(11) NULL, - `clay` int(11) NULL, - `iron` int(11) NULL, - `crop` int(11) NULL, - PRIMARY KEY (`moveid`) + `moveid` int(11) NOT NULL AUTO_INCREMENT, + `sort_type` tinyint(4) DEFAULT '0', + `from` int(11) DEFAULT '0', + `to` int(11) DEFAULT '0', + `ref` int(11) DEFAULT '0', + `ref2` int(11) DEFAULT '0', + `starttime` int(11) DEFAULT '0', + `endtime` int(11) DEFAULT '0', + `proc` tinyint(1) DEFAULT '0', + `send` tinyint(1) DEFAULT NULL, + `wood` int(11) DEFAULT NULL, + `clay` int(11) DEFAULT NULL, + `iron` int(11) DEFAULT NULL, + `crop` int(11) DEFAULT NULL, + PRIMARY KEY (`moveid`), + KEY `ref` (`ref`), + KEY `from-proc-sort_type` (`from`,`proc`,`sort_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; --