|
|
|
@ -429,6 +429,19 @@ ALTER TABLE `tab_user_play_info` ADD INDEX `search`(`promote_id`, `game_id`, `se
|
|
|
|
|
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`);
|
|
|
|
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
-- 添加登录日统计表
|
|
|
|
|
CREATE TABLE `tab_login_daily_record` (
|
|
|
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`game_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
|
|
|
|
|
`user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
|
|
|
|
|
`promote_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '推广员id',
|
|
|
|
|
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `search` (`promote_id`,`game_id`,`create_time`) USING BTREE,
|
|
|
|
|
KEY `user_id` (`user_id`) USING BTREE
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=284597 DEFAULT CHARSET=utf8;
|
|
|
|
|
=======
|
|
|
|
|
--sdk 支付信息
|
|
|
|
|
ALTER TABLE `tab_pay_info`
|
|
|
|
|
MODIFY COLUMN `order_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '平台订单ID' AFTER `game_id`,
|
|
|
|
@ -440,6 +453,7 @@ ADD COLUMN `extend` varchar(255) NOT NULL DEFAULT '' COMMENT 'cp订单ID' AFTER
|
|
|
|
|
ALTER TABLE `tab_promote`
|
|
|
|
|
CHANGE COLUMN `ver_status` `ver_status` INT(11) NULL DEFAULT '0' COMMENT '资质认证审核状态(1是审核成功,2审核失败,3未审核,4修改认证)' AFTER `child_game_permission`,
|
|
|
|
|
ADD COLUMN `anothpic` CHAR(254) NULL DEFAULT NULL AFTER `account_type`;
|
|
|
|
|
>>>>>>> 05bb9b4aa3ba712199e5489f684bc7a8cfeb59c8
|
|
|
|
|
|
|
|
|
|
--2019-11-19 chenzhi
|
|
|
|
|
CREATE TABLE `tab_index_chart` (
|
|
|
|
@ -462,3 +476,30 @@ CREATE TABLE `tab_index_chart` (
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `date` (`date`) USING BTREE
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='首页折线图静态数据';
|
|
|
|
|
|
|
|
|
|
-- 2019-11-20 zyx
|
|
|
|
|
DROP TABLE IF EXISTS `tab_device_statistics`;
|
|
|
|
|
CREATE TABLE `tab_device_statistics` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`time` int(11) NOT NULL DEFAULT 0 COMMENT '日期时间戳',
|
|
|
|
|
`new_device` int(11) NOT NULL DEFAULT 0 COMMENT '当日新增设备',
|
|
|
|
|
`active_device` int(11) NOT NULL DEFAULT 0 COMMENT '当日活跃设备',
|
|
|
|
|
`today_new_device` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT '当日新增设备按小时划分的json字符串',
|
|
|
|
|
`today_active_device` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT '当日活跃设备按小时划分的json字符串',
|
|
|
|
|
`today_model_device` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT '当日启动机型(机型,系统,数量)',
|
|
|
|
|
`model` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT '当日启动设备',
|
|
|
|
|
`version` int(11) NOT NULL DEFAULT 1 COMMENT '机型',
|
|
|
|
|
`duration7` int(255) NOT NULL DEFAULT 0 COMMENT '七天的平均使用时间',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
|
INDEX `time`(`time`) USING BTREE
|
|
|
|
|
) ENGINE = MyISAM AUTO_INCREMENT = 163 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|
|
|
|
|
ALTER TABLE `platform`.`tab_device_record`
|
|
|
|
|
ADD INDEX `create_time`(`create_time`) USING BTREE,
|
|
|
|
|
ADD INDEX `unique_code`(`unique_code`) USING BTREE,
|
|
|
|
|
ADD INDEX `idx_unique_version`(`version`, `unique_code`) USING BTREE,
|
|
|
|
|
ADD INDEX `version`(`version`) USING BTREE;
|
|
|
|
|
UPDATE `platform_new`.`tab_quick_menu` SET `url` = '/index.php?s=/Home/TestResource/index.html' WHERE `id` = 11
|
|
|
|
|
UPDATE `platform_new`.`tab_quick_menu` SET `url` = '/index.php?s=/Home/TestResource/lists.html' WHERE `id` = 12
|
|
|
|
|
|
|
|
|
|