From bd5257046c2cb44fbd6b1ea87620be41f95f5a25 Mon Sep 17 00:00:00 2001 From: fanxb Date: Sun, 17 Nov 2019 18:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9D=93=20Chore:=20[=E5=90=8E=E5=8F=B0]:bookm?= =?UTF-8?q?ark=E8=A1=A8=E5=BB=BA=E7=AB=8B=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/src/main/resources/db/migration/V4__新增免验证url.sql | 2 +- .../web/src/main/resources/db/migration/V5__增加索引.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 bookMarkService/web/src/main/resources/db/migration/V5__增加索引.sql diff --git a/bookMarkService/web/src/main/resources/db/migration/V4__新增免验证url.sql b/bookMarkService/web/src/main/resources/db/migration/V4__新增免验证url.sql index 493d7e4..87fa414 100644 --- a/bookMarkService/web/src/main/resources/db/migration/V4__新增免验证url.sql +++ b/bookMarkService/web/src/main/resources/db/migration/V4__新增免验证url.sql @@ -1 +1 @@ -INSERT INTO `bookmark`.`url`(`method`, `url`, `type`) VALUES ('GET', '/baseInfo/verifyEmail', 0); \ No newline at end of file +INSERT INTO `bookmark`.`url` VALUES (8,'GET', '/baseInfo/verifyEmail', 0); \ No newline at end of file diff --git a/bookMarkService/web/src/main/resources/db/migration/V5__增加索引.sql b/bookMarkService/web/src/main/resources/db/migration/V5__增加索引.sql new file mode 100644 index 0000000..3d6fab5 --- /dev/null +++ b/bookMarkService/web/src/main/resources/db/migration/V5__增加索引.sql @@ -0,0 +1,2 @@ +ALTER TABLE `bookmark`.`bookmark` +ADD INDEX `userId_path_index`(`userId`, `path`) USING BTREE; \ No newline at end of file