mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-29 18:10:46 +02:00
skip dbversions
This commit is contained in:
@ -133,6 +133,10 @@ def migrate_db(file: str, schema: str, exclude_tables: List[str] = []):
|
|||||||
|
|
||||||
for table in tables:
|
for table in tables:
|
||||||
tableName = table[0]
|
tableName = table[0]
|
||||||
|
print(f"Migrating table {tableName}")
|
||||||
|
# hard coded skip for dbversions (already produced during startup)
|
||||||
|
if tableName == "dbversions":
|
||||||
|
continue
|
||||||
if tableName in exclude_tables:
|
if tableName in exclude_tables:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -217,7 +221,7 @@ if os.path.isdir(args.sqlite_path):
|
|||||||
else:
|
else:
|
||||||
files = [args.sqlite_path]
|
files = [args.sqlite_path]
|
||||||
|
|
||||||
excluded_exts = ["ext_lnurlpos.sqlite3", "ext_cashu.sqlite3"]
|
excluded_exts = ["ext_lnurlpos.sqlite3"]
|
||||||
for file in files:
|
for file in files:
|
||||||
filename = os.path.basename(file)
|
filename = os.path.basename(file)
|
||||||
if filename.startswith("ext_") and filename not in excluded_exts:
|
if filename.startswith("ext_") and filename not in excluded_exts:
|
||||||
|
Reference in New Issue
Block a user