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

Commit 96bcc5d

Browse files
authored
Revert "check sqlite database file exists before porting/#14692" (#15301)
1 parent ec9224b commit 96bcc5d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

changelog.d/15301.bugfix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix a bug introduced in Synapse 1.75.0rc1 where the [SQLite port_db script](https://matrix-org.github.io/synapse/latest/postgres.html#porting-from-sqlite)
2+
would fail to open the SQLite database.
3+

synapse/_scripts/synapse_port_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ def main() -> None:
13291329
sqlite_config = {
13301330
"name": "sqlite3",
13311331
"args": {
1332-
"database": "file:{}?mode=rw".format(args.sqlite_database),
1332+
"database": args.sqlite_database,
13331333
"cp_min": 1,
13341334
"cp_max": 1,
13351335
"check_same_thread": False,

0 commit comments

Comments
 (0)