reintroduce extension migration check (#1490)
* reintroduce extension migration check * introduce checkversions again and remove extensions from dbversions table
This commit is contained in:
parent
3276347d5d
commit
db97ef5543
2 changed files with 6 additions and 9 deletions
Binary file not shown.
|
|
@ -212,8 +212,7 @@ 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")
|
||||||
# TODO
|
check_db_versions(file)
|
||||||
# check_db_versions(file)
|
|
||||||
if not args.extensions_only:
|
if not args.extensions_only:
|
||||||
migrate_core(file, exclude_tables)
|
migrate_core(file, exclude_tables)
|
||||||
|
|
||||||
|
|
@ -225,10 +224,8 @@ else:
|
||||||
files = [args.sqlite_path]
|
files = [args.sqlite_path]
|
||||||
|
|
||||||
|
|
||||||
# TODO: think about testing extension migrations again,
|
excluded_exts = ["ext_lnurlpos.sqlite3"]
|
||||||
# after we pulled them out from core
|
for file in files:
|
||||||
# excluded_exts = ["ext_lnurlpos.sqlite3"]
|
filename = os.path.basename(file)
|
||||||
# for file in files:
|
if filename.startswith("ext_") and filename not in excluded_exts:
|
||||||
# filename = os.path.basename(file)
|
migrate_ext(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