mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
Merge pull request #23 from Rexcrazy804/reset-autoincrement
reset auto increment on stash wipe
This commit is contained in:
commit
7aa28a871e
1 changed files with 4 additions and 0 deletions
|
|
@ -290,6 +290,10 @@ impl ClipboardDb for SqliteClipboardDb {
|
|||
.conn
|
||||
.execute("DELETE FROM clipboard", [])
|
||||
.map_err(|e| StashError::Wipe(e.to_string()))?;
|
||||
self
|
||||
.conn
|
||||
.execute("DELETE FROM sqlite_sequence WHERE name = 'clipboard'", [])
|
||||
.map_err(|e| StashError::Wipe(e.to_string()))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue