Enable secure_delete PRAGMA on SQLite databases (#370)
It is especially important for OMEMO database, as it stores *ephemeral* keys
This commit is contained in:
parent
65039b4c23
commit
b9125b7e3e
|
@ -246,6 +246,9 @@ public class Database : Qlite.Database {
|
|||
try {
|
||||
exec("PRAGMA synchronous=0");
|
||||
} catch (Error e) { }
|
||||
try {
|
||||
exec("PRAGMA secure_delete=1");
|
||||
} catch (Error e) { }
|
||||
}
|
||||
|
||||
public override void migrate(long oldVersion) {
|
||||
|
|
|
@ -233,6 +233,9 @@ public class Database : Qlite.Database {
|
|||
try {
|
||||
exec("PRAGMA synchronous=0");
|
||||
} catch (Error e) { }
|
||||
try {
|
||||
exec("PRAGMA secure_delete=1");
|
||||
} catch (Error e) { }
|
||||
}
|
||||
|
||||
public override void migrate(long oldVersion) {
|
||||
|
|
Loading…
Reference in a new issue