Revert "Extension: Cashu"

This commit is contained in:
calle
2022-11-27 18:03:20 +01:00
committed by GitHub
parent 8d12fca072
commit 5c09469d61
28 changed files with 389 additions and 5679 deletions
+1 -5
View File
@@ -133,10 +133,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
@@ -160,7 +156,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"