Skip to content

Commit

Permalink
Merge branch 'main' into mint_use_embit_for_lnbits
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Feb 5, 2024
2 parents 3152bed + f8f167f commit 8c364f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cashu/mint/migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ async def get_columns(db: Database, conn: Connection, table: str):
await conn.execute(
f"INSERT INTO {table_with_schema(db, 'mint_quotes')} (quote, method,"
" request, checking_id, unit, amount, paid, issued, created_time,"
" paid_time) SELECT id, 'bolt11', bolt11, payment_hash, 'sat', amount,"
f" False, issued, created, NULL FROM {table_with_schema(db, 'invoices')} "
" paid_time) SELECT id, 'bolt11', bolt11, COALESCE(payment_hash, 'None'),"
f" 'sat', amount, False, issued, COALESCE(created, '{timestamp_now(db)}'),"
f" NULL FROM {table_with_schema(db, 'invoices')} "
)

# drop table invoices
Expand Down

0 comments on commit 8c364f9

Please sign in to comment.