mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-03 09:29:14 +01:00
skip dbversions
This commit is contained in:
parent
e12d038e22
commit
23308fe6cf
1 changed files with 5 additions and 1 deletions
|
@ -128,6 +128,10 @@ def migrate_db(file: str, schema: str, exclude_tables: List[str] = []):
|
|||
|
||||
for table in tables:
|
||||
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:
|
||||
continue
|
||||
|
||||
|
@ -212,7 +216,7 @@ if os.path.isdir(args.sqlite_path):
|
|||
else:
|
||||
files = [args.sqlite_path]
|
||||
|
||||
excluded_exts = ["ext_lnurlpos.sqlite3", "ext_cashu.sqlite3"]
|
||||
excluded_exts = ["ext_lnurlpos.sqlite3"]
|
||||
for file in files:
|
||||
filename = os.path.basename(file)
|
||||
if filename.startswith("ext_") and filename not in excluded_exts:
|
||||
|
|
Loading…
Add table
Reference in a new issue