mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04: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
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 New Issue
Block a user