From b96a6f09b187b54c350d790b25cad3922fe776ea Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 20 Nov 2019 14:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Data/update.sql | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Data/update.sql b/Data/update.sql index be4059ae3..938a5c188 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -454,3 +454,29 @@ 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-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