From 352642b06cc48565a5690474cde714e1711af52b Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Tue, 18 Oct 2022 10:27:11 +0800 Subject: [PATCH] fix(web/blog/delete): remove solutions when delete blog --- web/app/libs/uoj-query-lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/libs/uoj-query-lib.php b/web/app/libs/uoj-query-lib.php index 7136303..fb8896f 100644 --- a/web/app/libs/uoj-query-lib.php +++ b/web/app/libs/uoj-query-lib.php @@ -273,4 +273,5 @@ function deleteBlog($id) { DB::delete("delete from blogs_comments where blog_id = $id"); DB::delete("delete from important_blogs where blog_id = $id"); DB::delete("delete from blogs_tags where blog_id = $id"); + DB::delete("DELETE FROM problems_solutions WHERE blog_id = $id"); }