u
This commit is contained in:
@@ -27,3 +27,10 @@ SELECT thumbw AS w, thumbh AS h, thumbbinary AS buffer
|
||||
FROM pic
|
||||
WHERE hash = @hash
|
||||
`;
|
||||
|
||||
export const DELETE_BY_ARTICLE_AND_HASH = `
|
||||
DELETE p
|
||||
FROM pic p
|
||||
INNER JOIN articlepic ap ON ap.pic_id = p.id AND ap.article_id = @articleId
|
||||
WHERE p.hash = @fullHash
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user