reverts db deletions to avoid conflicts with the open file
This commit is contained in:
+5
-1
@@ -86,7 +86,11 @@ class SQLiteEventStore(
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
fun clearDB() {
|
fun clearDB() {
|
||||||
context.deleteDatabase(dbName)
|
val db = writableDatabase
|
||||||
|
fullTextSearchModule.deleteAll(db)
|
||||||
|
rightToVanishModule.deleteAll(db)
|
||||||
|
expirationModule.deleteAll(db)
|
||||||
|
eventIndexModule.deleteAll(db)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun innerInsertEvent(
|
private fun innerInsertEvent(
|
||||||
|
|||||||
Reference in New Issue
Block a user