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:
callebtc
2023-11-01 20:55:52 -03:00
committed by GitHub
parent aa36651629
commit a4abbc2eee
4 changed files with 36 additions and 10 deletions

View File

@@ -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(