Delete FTS DB on corruption

This commit is contained in:
M66B
2020-06-12 12:58:55 +02:00
parent 897c490784
commit 9c4415ac41
2 changed files with 13 additions and 3 deletions

View File

@@ -174,4 +174,8 @@ public class FtsDbHelper extends SQLiteOpenHelper {
Log.i("FTS optimize");
db.execSQL("INSERT INTO message (message) VALUES ('optimize')");
}
static void delete(Context context) {
context.getDatabasePath(DATABASE_NAME).delete();
}
}