fix(web/blog/delete): remove solutions when delete blog

This commit is contained in:
Baoshuo Ren 2022-10-18 10:27:11 +08:00
parent 9b691606d1
commit 352642b06c
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -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");
}