mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
Merge pull request #247 from slp/sql-secure_delete
Enable SQLite secure_delete pragma.
This commit is contained in:
commit
3316f25e35
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ public class MessagesStorage {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
database = new SQLiteDatabase(cacheFile.getPath());
|
database = new SQLiteDatabase(cacheFile.getPath());
|
||||||
|
database.execute("PRAGMA secure_delete = ON");
|
||||||
if (createTable) {
|
if (createTable) {
|
||||||
database.executeFast("CREATE TABLE users(uid INTEGER PRIMARY KEY, name TEXT, status INTEGER, data BLOB)").stepThis().dispose();
|
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();
|
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();
|
||||||
|
|
Loading…
Reference in a new issue