From 2bb9797ddb71932bd4eb29fe5f56d8e26f2d4d9c Mon Sep 17 00:00:00 2001 From: Igor Cota Date: Wed, 28 Feb 2018 17:13:35 +0100 Subject: [PATCH] Add bolt11 to the invoices db table as TEXT. Saving in case an RPC client needs it later --- wallet/db.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wallet/db.c b/wallet/db.c index 9083304ff..d3e815447 100644 --- a/wallet/db.c +++ b/wallet/db.c @@ -200,6 +200,8 @@ char *dbmigrations[] = { "DELETE FROM peers WHERE id NOT IN (SELECT peer_id FROM channels);", /* The ONCHAIND_CHEATED/THEIR_UNILATERAL/OUR_UNILATERAL/MUTUAL are now one */ "UPDATE channels SET STATE = 8 WHERE state > 8;", + /* Add bolt11 to invoices table*/ + "ALTER TABLE invoices ADD bolt11 TEXT;", NULL, };