[GH-ISSUE #892] Shiori auto increasment not work currectly on sqlite database #407

Closed
opened 2026-02-25 23:34:09 +03:00 by kerem · 1 comment
Owner

Originally created by @Monirzadeh on GitHub (Apr 26, 2024).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/892

Data

  • Shiori version: 1.6.2
  • Database Engine: sqlite
  • Operating system: linux
  • CLI/Web interface/Web Extension: all of them

Describe the bug / actual behavior

if you add just first bookmark it will get ID 1
now if you remove that bookmark and add new bookmark it again get same ID number 1

Expected behavior

shiori always should create uniq id that not ever use.

To Reproduce

Steps to reproduce the behavior:

  1. add bookmark a that you will get id 1 for that
  2. delete that bookmark
  3. add bookmark b
  4. you will get id 1 again instead of 2 for bookmark b

Notes

it happen just in sqlite

Originally created by @Monirzadeh on GitHub (Apr 26, 2024). Original GitHub issue: https://github.com/go-shiori/shiori/issues/892 ## Data - **Shiori version**: 1.6.2 - **Database Engine**: sqlite - **Operating system**: linux - **CLI/Web interface/Web Extension**: all of them ## Describe the bug / actual behavior if you add just first bookmark it will get ID 1 now if you remove that bookmark and add new bookmark it again get same ID number 1 ## Expected behavior shiori always should create uniq id that not ever use. ## To Reproduce Steps to reproduce the behavior: 1. add bookmark a that you will get id 1 for that 2. delete that bookmark 3. add bookmark b 4. you will get id 1 again instead of 2 for bookmark b ## Notes it happen just in sqlite
Author
Owner

@fmartingr commented on GitHub (Apr 26, 2024):

Related documentation: https://www.sqlite.org/autoinc.html

<!-- gh-comment-id:2079986804 --> @fmartingr commented on GitHub (Apr 26, 2024): Related documentation: https://www.sqlite.org/autoinc.html
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#407
No description provided.