mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
db: Add payments table
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
490ee76162
commit
6601c43edc
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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user