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:
|
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
|
||||||
|
|
||||||
|
|
@ -212,7 +216,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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue