forked from go-shiori/shiori
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update bookmark on sqlite database (go-shiori#367)
It used an update and insert at the same time, since the virtual table cannot have constrants nor upserts we need to try an update the bookmark content to check for it's existence, inserting it only if the update fails (don't affect any rows). This will need to be improved in the future, since not all bookmark updates require modification of the content table (in my case, I was testing only updating tags).
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters