mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-02-03 15:54:20 +01:00
Mint: fix lnbits migration (#407)
* fix lnbits migration * save without format * make format
This commit is contained in:
@@ -312,8 +312,9 @@ async def m011_add_quote_tables(db: Database):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user