Add articlehistory on updateBySku and getHistoryBySku
This commit is contained in:
11
src/sql/articlehistory.js
Normal file
11
src/sql/articlehistory.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export const INSERT = `
|
||||
INSERT INTO articlehistory (article_id, [text])
|
||||
VALUES (@articleId, @text)
|
||||
`;
|
||||
|
||||
export const LIST_BY_ARTICLE_ID = `
|
||||
SELECT id, [date], [text]
|
||||
FROM articlehistory
|
||||
WHERE article_id = @articleId
|
||||
ORDER BY [date] DESC, id DESC
|
||||
`;
|
||||
Reference in New Issue
Block a user