diff --git a/install/data/sql.sql b/install/data/sql.sql index d67b0fa6..8142c6d8 100644 --- a/install/data/sql.sql +++ b/install/data/sql.sql @@ -958,7 +958,8 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%market` ( `maxtime` int(11) NULL, `alliance` int(11) NULL, `merchant` tinyint(2) NULL, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + KEY `vref-accept` (`vref`,`accept`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- diff --git a/sql_updates.txt b/sql_updates.txt index 4122d6cf..aca45006 100644 --- a/sql_updates.txt +++ b/sql_updates.txt @@ -1,5 +1,6 @@ -- 23.10.2017 -> SQL optimizations ALTER TABLE `s1_medal` ADD INDEX(`week`); +ALTER TABLE `s1_market` ADD INDEX `vref-accept` (`vref`, `accept`); -- 22.10.2017 -> SQL optimizations @@ -39,7 +40,7 @@ ALTER TABLE `s1_artefacts` ADD INDEX `active-type-lastupdate` (`active`, `type`, -- 22.10.2017 -> forum topics table and indexe changes ALTER TABLE `s1_forum_post` CHANGE `topic` `topic` INT NULL DEFAULT NULL; ALTER TABLE `s1_forum_post` CHANGE `owner` `owner` INT NULL DEFAULT NULL; -ALTER TABLE `travian`.`s1_forum_post` ADD INDEX `topic-owner` (`topic`, `owner`); +ALTER TABLE `s1_forum_post` ADD INDEX `topic-owner` (`topic`, `owner`); -- 20.10.2017 -> changing MD5 for bcrypt password hashing algo