mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
refactor(db): Handle the addition from SQL directly instead from code
This commit is contained in:
parent
39428f8c79
commit
97eacbbaea
6 changed files with 5 additions and 9 deletions
|
@ -16,7 +16,7 @@ ON CONFLICT(history_chapter_id)
|
|||
DO UPDATE
|
||||
SET
|
||||
history_last_read = :historyLastRead,
|
||||
history_time_read = :historyTimeRead
|
||||
history_time_read = ifnull(history_time_read, 0) + :historyTimeRead
|
||||
WHERE history_chapter_id = history_chapter_id;
|
||||
|
||||
selectLastInsertedRowId:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue