mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-13 06:23:47 +00:00
reset auto increment on stash wipe
This commit is contained in:
parent
03550b884d
commit
ef0d05cbad
1 changed files with 4 additions and 0 deletions
|
|
@ -290,6 +290,10 @@ impl ClipboardDb for SqliteClipboardDb {
|
||||||
.conn
|
.conn
|
||||||
.execute("DELETE FROM clipboard", [])
|
.execute("DELETE FROM clipboard", [])
|
||||||
.map_err(|e| StashError::Wipe(e.to_string()))?;
|
.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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue