Revert "Extension: Cashu"

This commit is contained in:
calle 2022-11-27 18:03:20 +01:00 committed by dni ⚡
parent cb042d0bd0
commit 2c562b7053
27 changed files with 312 additions and 5550 deletions

View file

@ -128,10 +128,6 @@ 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
@ -155,7 +151,7 @@ def build_insert_query(schema, tableName, columns):
def to_column_type(columnType):
if columnType == "TIMESTAMP":
return "to_timestamp(%s)"
if columnType in ["BOOLEAN", "BOOL"]:
if columnType == "BOOLEAN":
return "%s::boolean"
return "%s"