mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-14 14:01:59 +01:00
Check sqlite database file exists before porting. (#14692)
To avoid creating an empty SQLite file if the given path is incorrect.
This commit is contained in:
parent
14abf22dd6
commit
5c9be9c760
2 changed files with 2 additions and 1 deletions
1
changelog.d/14692.misc
Normal file
1
changelog.d/14692.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Check that the SQLite database file exists before porting to PostgreSQL.
|
|
@ -1307,7 +1307,7 @@ def main() -> None:
|
|||
sqlite_config = {
|
||||
"name": "sqlite3",
|
||||
"args": {
|
||||
"database": args.sqlite_database,
|
||||
"database": "file:{}?mode=rw".format(args.sqlite_database),
|
||||
"cp_min": 1,
|
||||
"cp_max": 1,
|
||||
"check_same_thread": False,
|
||||
|
|
Loading…
Reference in a new issue