mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Switch to FULL synchronous of sqlite
This commit is contained in:
@@ -337,7 +337,7 @@ function keyDatabase(db: Database, key: string): void {
|
||||
function switchToWAL(db: Database): void {
|
||||
// https://sqlite.org/wal.html
|
||||
db.pragma('journal_mode = WAL');
|
||||
db.pragma('synchronous = NORMAL');
|
||||
db.pragma('synchronous = FULL');
|
||||
}
|
||||
function getUserVersion(db: Database): number {
|
||||
return db.pragma('user_version', { simple: true });
|
||||
|
||||
Reference in New Issue
Block a user