Switch PRAGMA synchronous back to FULL
All checks were successful
Django CI/CD / test (push) Successful in 1m8s
Django CI/CD / build-and-push (push) Successful in 2m8s

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:
Lukáš Kucharczyk 2025-02-09 08:56:24 +01:00
parent 2d7342c0d5
commit 3e713a7637
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg

View File

@ -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;",
}, },
} }
} }