We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d8c2f4 commit 4c638f0Copy full SHA for 4c638f0
mautrix/util/async_db/aiosqlite.py
@@ -134,7 +134,7 @@ def _add_missing_pragmas(init_commands: list[str]) -> list[str]:
134
init_commands.append("PRAGMA foreign_keys = ON")
135
if not has_journal_mode:
136
init_commands.append("PRAGMA journal_mode = WAL")
137
- if not has_synchronous:
+ if not has_synchronous and "PRAGMA journal_mode = WAL" in init_commands:
138
init_commands.append("PRAGMA synchronous = NORMAL")
139
if not has_busy_timeout:
140
init_commands.append("PRAGMA busy_timeout = 5000")
0 commit comments