remove all extensions from migration data at once (#1489)
* remove all extnesions from migration data at once * nerf workflow for now * check dbversions
This commit is contained in:
parent
77a6ac041c
commit
3276347d5d
2 changed files with 10 additions and 6 deletions
Binary file not shown.
|
|
@ -212,7 +212,8 @@ print("Selected path: ", args.sqlite_path)
|
||||||
if os.path.isdir(args.sqlite_path):
|
if os.path.isdir(args.sqlite_path):
|
||||||
exclude_tables = ["dbversions"]
|
exclude_tables = ["dbversions"]
|
||||||
file = os.path.join(args.sqlite_path, "database.sqlite3")
|
file = os.path.join(args.sqlite_path, "database.sqlite3")
|
||||||
check_db_versions(file)
|
# TODO
|
||||||
|
# check_db_versions(file)
|
||||||
if not args.extensions_only:
|
if not args.extensions_only:
|
||||||
migrate_core(file, exclude_tables)
|
migrate_core(file, exclude_tables)
|
||||||
|
|
||||||
|
|
@ -223,8 +224,11 @@ if os.path.isdir(args.sqlite_path):
|
||||||
else:
|
else:
|
||||||
files = [args.sqlite_path]
|
files = [args.sqlite_path]
|
||||||
|
|
||||||
excluded_exts = ["ext_lnurlpos.sqlite3"]
|
|
||||||
for file in files:
|
# TODO: think about testing extension migrations again,
|
||||||
filename = os.path.basename(file)
|
# after we pulled them out from core
|
||||||
if filename.startswith("ext_") and filename not in excluded_exts:
|
# excluded_exts = ["ext_lnurlpos.sqlite3"]
|
||||||
migrate_ext(file)
|
# for file in files:
|
||||||
|
# filename = os.path.basename(file)
|
||||||
|
# if filename.startswith("ext_") and filename not in excluded_exts:
|
||||||
|
# migrate_ext(file)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue