From d5e66e60b5ebf6675a1a59b83e9ea375a0bca2f0 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 27 Jun 2022 15:51:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=B4=A2=E5=BC=95=E5=89=8D?= =?UTF-8?q?=EF=BC=8C=E5=85=88=E6=9C=9F=E5=88=A0=E9=99=A4=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- renren-admin/src/main/resources/db/V2.3__addindex.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/renren-admin/src/main/resources/db/V2.3__addindex.sql b/renren-admin/src/main/resources/db/V2.3__addindex.sql index 7b3e3338..004400da 100644 --- a/renren-admin/src/main/resources/db/V2.3__addindex.sql +++ b/renren-admin/src/main/resources/db/V2.3__addindex.sql @@ -1,3 +1,14 @@ +-- 删除索引 +alter table `tb_resource_collection` drop index `resourceid`; +alter table `tb_resource_car` drop index `resourceid`; +alter table `tb_resource_score` drop index `resourceid`; +alter table `tb_resource_browse` drop index `resourceid`; +alter table `t_ability_application` drop index `resourceid`; +alter table `t_ability_application` drop index `userId`; +alter table `tb_data_resource` drop index `type`; +alter table `tb_data_attr` drop index `attr_value`; +alter table `tb_data_resource` drop index `name`; +-- 创建索引 alter table `tb_resource_collection` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '收藏的资源id'; alter table`tb_resource_car` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '加入申购车的id'; alter table `tb_resource_score` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '评分的资源id';