mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
db: Add payments table
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
490ee76162
commit
6601c43edc
1 changed files with 11 additions and 0 deletions
11
wallet/db.c
11
wallet/db.c
|
@ -120,6 +120,17 @@ char *dbmigrations[] = {
|
|||
" UNIQUE (label),"
|
||||
" UNIQUE (payment_hash)"
|
||||
");",
|
||||
"CREATE TABLE payments ("
|
||||
" id INTEGER,"
|
||||
" timestamp INTEGER,"
|
||||
" status INTEGER,"
|
||||
" payment_hash BLOB,"
|
||||
" direction INTEGER,"
|
||||
" destination BLOB,"
|
||||
" msatoshi INTEGER,"
|
||||
" PRIMARY KEY (id),"
|
||||
" UNIQUE (payment_hash)"
|
||||
");",
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue