db file
This commit is contained in:
parent
923fad7382
commit
dd7f622a67
2 changed files with 6 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -15,7 +15,7 @@ __pycache__
|
||||||
.webassets-cache
|
.webassets-cache
|
||||||
htmlcov
|
htmlcov
|
||||||
test-reports
|
test-reports
|
||||||
tests/data
|
tests/data/*.sqlite3
|
||||||
|
|
||||||
*.swo
|
*.swo
|
||||||
*.swp
|
*.swp
|
||||||
|
|
|
||||||
|
|
@ -757,11 +757,11 @@ args = parser.parse_args()
|
||||||
print("Selected path: ", args.sqlite_path)
|
print("Selected path: ", args.sqlite_path)
|
||||||
|
|
||||||
if os.path.isdir(args.sqlite_path):
|
if os.path.isdir(args.sqlite_path):
|
||||||
file = "database.sqlite3"
|
file = os.path.join(args.sqlite_path, "database.sqlite3")
|
||||||
check_db_versions(os.path.join(args.sqlite_path, file))
|
check_db_versions(file)
|
||||||
if not args.extensions_only:
|
if not args.extensions_only:
|
||||||
print(f"Migrating: {os.path.join(args.sqlite_path, file)}")
|
print(f"Migrating: {file}")
|
||||||
migrate_core(os.path.join(args.sqlite_path, file))
|
migrate_core(file)
|
||||||
|
|
||||||
if os.path.isdir(args.sqlite_path):
|
if os.path.isdir(args.sqlite_path):
|
||||||
files = [
|
files = [
|
||||||
|
|
@ -776,7 +776,7 @@ for file in files:
|
||||||
schema = filename.replace("ext_", "").split(".")[0]
|
schema = filename.replace("ext_", "").split(".")[0]
|
||||||
print(f"Migrating: {file}")
|
print(f"Migrating: {file}")
|
||||||
migrate_ext(
|
migrate_ext(
|
||||||
os.path.join(args.sqlite_path, file),
|
file,
|
||||||
schema,
|
schema,
|
||||||
ignore_missing=args.skip_missing,
|
ignore_missing=args.skip_missing,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue