From 41517968a3c32957445e0ede41aea535c1cdd70f Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 27 Jun 2022 14:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A2=E5=BC=95=E7=9A=84=E5=A2=9E=E5=8A=A0?= 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 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 renren-admin/src/main/resources/db/V2.3__addindex.sql diff --git a/renren-admin/src/main/resources/db/V2.3__addindex.sql b/renren-admin/src/main/resources/db/V2.3__addindex.sql new file mode 100644 index 00000000..27030412 --- /dev/null +++ b/renren-admin/src/main/resources/db/V2.3__addindex.sql @@ -0,0 +1,4 @@ +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'; +ALTER TABLE `tb_resource_browse` ADD INDEX `resourceid`(`resource_id`) USING BTREE COMMENT '资源id索引'; \ No newline at end of file