mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
db: Added table for invoices
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
5a2242cde7
commit
067d2d7435
11
wallet/db.c
11
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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user