refactor: index for ww_attacks

This commit is contained in:
Martin Ambrus
2017-11-08 15:46:24 +01:00
parent 5db951c135
commit 9b0d7995e3
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -1,9 +1,14 @@
-- 8.11.2017 -> query optimizations and cleanups
ALTER TABLE `s1_ww_attacks` ADD INDEX(`vid`);
-- 2.11.2017 -> Hero fixes
ALTER TABLE `s1_hero` ADD INDEX(`lastupdate`);
ALTER TABLE `s1_hero` DROP INDEX `uid`, ADD INDEX `uid` (`uid`, `dead`) USING BTREE;
ALTER TABLE `s1_hero` ADD INDEX(`inrevive`);
ALTER TABLE `s1_hero` ADD INDEX(`intraining`);
-- 31.10.2017 -> Embassy and alliance updates
ALTER TABLE `s1_ali_permission` ADD INDEX(`alliance`);
ALTER TABLE `s1_allimedal` ADD INDEX(`allyid`);
+2 -1
View File
@@ -1709,7 +1709,8 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%password` (
CREATE TABLE IF NOT EXISTS `%PREFIX%ww_attacks` (
`vid` int(25) DEFAULT NULL,
`attack_time` int(11) DEFAULT NULL,
KEY `attack_time` (`attack_time`)
KEY `attack_time` (`attack_time`),
KEY `vid` (`vid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
--