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