Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Check sqlite database file exists before porting #14692

Merged
merged 9 commits into from
Dec 22, 2022
1 change: 1 addition & 0 deletions changelog.d/14692.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Check that the SQLite database file exists before porting to PostgreSQL.
2 changes: 1 addition & 1 deletion synapse/_scripts/synapse_port_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ def main() -> None:
sqlite_config = {
"name": "sqlite3",
"args": {
"database": args.sqlite_database,
"database": "file:{}?mode=rw".format(args.sqlite_database),
clokep marked this conversation as resolved.
Show resolved Hide resolved
"cp_min": 1,
"cp_max": 1,
"check_same_thread": False,
Expand Down