From 63336fdcba54dc6c8cc9ca53b8bd2ec742c6e5bc Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 1 Nov 2023 19:55:30 -0300 Subject: [PATCH] remove balance view before childredn --- cashu/mint/migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cashu/mint/migrations.py b/cashu/mint/migrations.py index c2c7a937..5b9270ba 100644 --- a/cashu/mint/migrations.py +++ b/cashu/mint/migrations.py @@ -183,9 +183,9 @@ async def m009_add_out_to_invoices(db: Database): # column in invoices for marking whether the invoice is incoming (out=False) or outgoing (out=True) async with db.connect() as conn: # we have to drop the balance views first and recreate them later + await conn.execute(f"DROP VIEW {table_with_schema(db, 'balance')}") await conn.execute(f"DROP VIEW {table_with_schema(db, 'balance_issued')}") await conn.execute(f"DROP VIEW {table_with_schema(db, 'balance_redeemed')}") - await conn.execute(f"DROP VIEW {table_with_schema(db, 'balance')}") # rename column pr to bolt11 await conn.execute(