Switch PRAGMA synchronous back to FULL
I had some data loss when restarting a container shortly after a database change, let's see if this prevents it.
This commit is contained in:
parent
2d7342c0d5
commit
3e713a7637
@ -115,7 +115,7 @@ DATABASES = {
|
|||||||
"NAME": BASE_DIR / "db.sqlite3",
|
"NAME": BASE_DIR / "db.sqlite3",
|
||||||
"OPTIONS": {
|
"OPTIONS": {
|
||||||
"timeout": 20,
|
"timeout": 20,
|
||||||
"init_command": "PRAGMA synchronous=NORMAL; PRAGMA journal_mode=WAL;",
|
"init_command": "PRAGMA synchronous=FULL; PRAGMA journal_mode=WAL;",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user