mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-05 22:15:54 +01:00
First pass of LN payment callbacks
This commit is contained in:
15
proxy_docker/app/data/sqlmigrate20190104_0.1-0.2.sql
Normal file
15
proxy_docker/app/data/sqlmigrate20190104_0.1-0.2.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
PRAGMA foreign_keys = ON;
|
||||
|
||||
INSERT INTO cyphernode_props (property, value) VALUES ("pay_index", "0");
|
||||
|
||||
CREATE TABLE ln_invoice (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
bolt11 TEXT UNIQUE,
|
||||
status TEXT,
|
||||
callback_url TEXT,
|
||||
calledback INTEGER DEFAULT FALSE,
|
||||
callback_failed INTEGER DEFAULT FALSE,
|
||||
inserted_ts INTEGER DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
CREATE INDEX idx_lninvoice_bolt11 ON ln_invoice (bolt11);
|
||||
CREATE INDEX idx_lninvoice_status ON ln_invoice (status);
|
||||
Reference in New Issue
Block a user