Reset operation auto-increment ID

This commit is contained in:
dbr 2021-09-04 13:05:21 +10:00
parent 5db04ee1af
commit f8ed4cecdd

View file

@ -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)?;