mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-20 03:14:20 -05: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 = {
|
sqlite_config = {
|
||||||
"name": "sqlite3",
|
"name": "sqlite3",
|
||||||
"args": {
|
"args": {
|
||||||
"database": args.sqlite_database,
|
"database": "file:{}?mode=rw".format(args.sqlite_database),
|
||||||
"cp_min": 1,
|
"cp_min": 1,
|
||||||
"cp_max": 1,
|
"cp_max": 1,
|
||||||
"check_same_thread": False,
|
"check_same_thread": False,
|
||||||
|
Loading…
Reference in New Issue
Block a user