diff --git a/Data/update.sql b/Data/update.sql index 6d4a6d5de..b517e47e9 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -1404,7 +1404,9 @@ CREATE TABLE `tab_operation_log` ( `admin_account` varchar(30) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '管理员账号', `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', `op_ip` varchar(16) DEFAULT '0' COMMENT '登陆ip', - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + KEY `admin_id` (`admin_id`) USING BTREE, + KEY `op_type` (`op_type`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- 2020-02-25 chenzhi spend表索引优化