diff --git a/Data/update.sql b/Data/update.sql index bf9c3dd30..58d6e846e 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -410,3 +410,8 @@ ALTER TABLE `tab_spend` ADD COLUMN `exists` int(11) NOT NULL DEFAULT 0 COMMENT '0 不存在 1存在' AFTER `withdraw_id`, ADD COLUMN `pay_url` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `exists`; +-- 2019-11-19 cxj +-- 添加索引 +ALTER TABLE `tab_user_play_info` ADD INDEX `search`(`promote_id`, `game_id`, `server_id`, `create_time`); +ALTER TABLE `tab_user_login_record` ADD INDEX `search`(`promote_id`, `game_id`, `server_id`, `login_time`); +ALTER TABLE `tab_spend` ADD INDEX `search`(`promote_id`, `game_id`, `server_id`, `pay_way`, `pay_status`, `pay_time`); \ No newline at end of file