mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-23 03:34:19 +01:00
Postgres migrations: remove balance view before children (#353)
* remove balance view before childredn * update readme * CI with postgres * install postgres in CI * run postgres tests in CI? * disable postgres tests for now
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user