Commit 3316f25e authored by DrKLO's avatar DrKLO

Merge pull request #247 from slp/sql-secure_delete

Enable SQLite secure_delete pragma.
parents ea8f9244 9f63be65
......@@ -69,6 +69,7 @@ public class MessagesStorage {
}
try {
database = new SQLiteDatabase(cacheFile.getPath());
database.execute("PRAGMA secure_delete = ON");
if (createTable) {
database.executeFast("CREATE TABLE users(uid INTEGER PRIMARY KEY, name TEXT, status INTEGER, data BLOB)").stepThis().dispose();
database.executeFast("CREATE TABLE messages(mid INTEGER PRIMARY KEY, uid INTEGER, read_state INTEGER, send_state INTEGER, date INTEGER, data BLOB, out INTEGER, ttl INTEGER)").stepThis().dispose();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment