Skip to content

Commit

Permalink
remove balance view before childredn
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Nov 1, 2023
1 parent aa36651 commit 63336fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cashu/mint/migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 63336fd

Please sign in to comment.