diff --git a/wallet/db.c b/wallet/db.c index 201e2780c..8fb2adef6 100644 --- a/wallet/db.c +++ b/wallet/db.c @@ -110,6 +110,17 @@ char *dbmigrations[] = { " PRIMARY KEY (id)," " UNIQUE (channel_id, channel_htlc_id, direction)" ");", + "CREATE TABLE invoices (" + " id INTEGER," + " state INTEGER," + " msatoshi INTEGER," + " payment_hash BLOB," + " payment_key BLOB," + " label TEXT," + " PRIMARY KEY (id)," + " UNIQUE (label)," + " UNIQUE (payment_hash)" + ");", NULL, };