wallet: add invoice_fallbacks table and paid_outpoint to invoices

This commit is contained in:
Chris Guida 2023-10-26 14:02:12 +10:30 committed by Rusty Russell
parent fc4b2f864e
commit 6b764c0e7c
1 changed files with 8 additions and 0 deletions

View File

@ -978,6 +978,14 @@ static struct migration dbmigrations[] = {
{NULL, migrate_runes_idfix},
{SQL("ALTER TABLE runes ADD last_used_nsec BIGINT DEFAULT NULL"), NULL},
{SQL("DELETE FROM vars WHERE name = 'runes_uniqueid'"), NULL},
{SQL("CREATE TABLE invoice_fallbacks ("
" scriptpubkey BLOB,"
" invoice_id BIGINT REFERENCES invoices(id) ON DELETE CASCADE,"
" PRIMARY KEY (scriptpubkey)"
");"),
NULL},
{SQL("ALTER TABLE invoices ADD paid_txid BLOB DEFAULT NULL"), NULL},
{SQL("ALTER TABLE invoices ADD paid_outnum INTEGER DEFAULT NULL"), NULL},
};
/**