Merge pull request #23 from Rexcrazy804/reset-autoincrement

reset auto increment on stash wipe
This commit is contained in:
raf 2025-08-20 18:14:59 +03:00 committed by GitHub
commit 7aa28a871e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(())
}