mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 16:53:08 +02:00
Reset operation auto-increment ID
This commit is contained in:
parent
5db04ee1af
commit
f8ed4cecdd
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,8 @@ impl<'t> StorageTxn for Txn<'t> {
|
|||
let t = self.get_txn()?;
|
||||
t.execute("DELETE FROM operations", [])
|
||||
.context("Clear all existing operations")?;
|
||||
t.execute("DELETE FROM sqlite_sequence WHERE name = 'operations'", [])
|
||||
.context("Clear all existing operations")?;
|
||||
|
||||
for o in ops {
|
||||
self.add_operation(o)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue