Skip to content
Snippets Groups Projects
Unverified Commit 5c9be9c7 authored by Jeyachandran Rathnam's avatar Jeyachandran Rathnam Committed by GitHub
Browse files

Check sqlite database file exists before porting. (#14692)

To avoid creating an empty SQLite file if the given path
is incorrect.
parent 14abf22d
No related branches found
No related tags found
No related merge requests found
Check that the SQLite database file exists before porting to PostgreSQL.
\ No newline at end of file
...@@ -1307,7 +1307,7 @@ def main() -> None: ...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment