Add bolt11 to the invoices db table as TEXT.

Saving in case an RPC client needs it later
This commit is contained in:
Igor Cota 2018-02-28 17:13:35 +01:00 committed by Rusty Russell
parent e10a2b63ca
commit 2bb9797ddb

View File

@ -200,6 +200,8 @@ char *dbmigrations[] = {
"DELETE FROM peers WHERE id NOT IN (SELECT peer_id FROM channels);", "DELETE FROM peers WHERE id NOT IN (SELECT peer_id FROM channels);",
/* The ONCHAIND_CHEATED/THEIR_UNILATERAL/OUR_UNILATERAL/MUTUAL are now one */ /* The ONCHAIND_CHEATED/THEIR_UNILATERAL/OUR_UNILATERAL/MUTUAL are now one */
"UPDATE channels SET STATE = 8 WHERE state > 8;", "UPDATE channels SET STATE = 8 WHERE state > 8;",
/* Add bolt11 to invoices table*/
"ALTER TABLE invoices ADD bolt11 TEXT;",
NULL, NULL,
}; };