记得上下班打卡 | git大法好,push需谨慎

Commit cbee5d88 authored by jiangxiulong's avatar jiangxiulong

增加mysql索引

parent 35e56d6b
...@@ -11,4 +11,6 @@ CREATE TABLE `sweet_wechat_maodeng` ( ...@@ -11,4 +11,6 @@ CREATE TABLE `sweet_wechat_maodeng` (
PRIMARY KEY (`mid`) USING BTREE PRIMARY KEY (`mid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 38 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; ) ENGINE = InnoDB AUTO_INCREMENT = 38 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
SET FOREIGN_KEY_CHECKS = 1; SET FOREIGN_KEY_CHECKS = 1;
\ No newline at end of file
ALTER TABLE `sweet_wechat_maodeng` ADD INDEX idx_maodeng_open_id (`user_id`);
\ No newline at end of file
...@@ -439,6 +439,8 @@ CREATE TABLE `sweet_wechat_users` ...@@ -439,6 +439,8 @@ CREATE TABLE `sweet_wechat_users`
DEFAULT CHARSET utf8mb4 DEFAULT CHARSET utf8mb4
COLLATE utf8mb4_unicode_ci COLLATE utf8mb4_unicode_ci
ROW_FORMAT = DYNAMIC COMMENT '正在现场服务号关注事件储存用户信息表'; ROW_FORMAT = DYNAMIC COMMENT '正在现场服务号关注事件储存用户信息表';
ALTER TABLE `sweet_wechat_users` ADD INDEX idx_wechat_open_id (`open_id`);
ALTER TABLE `sweet_wechat_users` ADD INDEX idx_wechat_union_id (`union_id`);
-- 小程序登录记录用户解密后信息表 -- 小程序登录记录用户解密后信息表
drop TABLE if exists `sweet_applet_users`; drop TABLE if exists `sweet_applet_users`;
...@@ -461,6 +463,7 @@ CREATE TABLE `sweet_applet_users` ...@@ -461,6 +463,7 @@ CREATE TABLE `sweet_applet_users`
DEFAULT CHARSET utf8mb4 DEFAULT CHARSET utf8mb4
COLLATE utf8mb4_unicode_ci COLLATE utf8mb4_unicode_ci
ROW_FORMAT = DYNAMIC COMMENT '小程序登录记录用户解密后信息表'; ROW_FORMAT = DYNAMIC COMMENT '小程序登录记录用户解密后信息表';
ALTER TABLE `sweet_applet_users` ADD INDEX idx_applet_union_id (`union_id`);
-- 答题表 -- 答题表
drop TABLE if exists `sweet_answer`; drop TABLE if exists `sweet_answer`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment