lnurlp webhooks.
This commit is contained in:
@@ -16,19 +16,20 @@ def m001_initial(db):
|
||||
)
|
||||
|
||||
|
||||
# def m002_webhooks_and_success_actions(db):
|
||||
# """
|
||||
# Webhooks and success actions.
|
||||
# """
|
||||
# db.execute("ALTER TABLE pay_links ADD COLUMN webhook_url TEXT;")
|
||||
# db.execute("ALTER TABLE pay_links ADD COLUMN success_text TEXT;")
|
||||
# db.execute("ALTER TABLE pay_links ADD COLUMN success_url TEXT;")
|
||||
# db.execute(
|
||||
# """
|
||||
# CREATE TABLE invoices (
|
||||
# payment_hash PRIMARY KEY,
|
||||
# link_id INTEGER NOT NULL REFERENCES pay_links (id),
|
||||
# webhook_sent BOOLEAN NOT NULL DEFAULT false
|
||||
# );
|
||||
# """
|
||||
# )
|
||||
def m002_webhooks_and_success_actions(db):
|
||||
"""
|
||||
Webhooks and success actions.
|
||||
"""
|
||||
db.execute("ALTER TABLE pay_links ADD COLUMN webhook_url TEXT;")
|
||||
db.execute("ALTER TABLE pay_links ADD COLUMN success_text TEXT;")
|
||||
db.execute("ALTER TABLE pay_links ADD COLUMN success_url TEXT;")
|
||||
db.execute(
|
||||
"""
|
||||
CREATE TABLE invoices (
|
||||
pay_link INTEGER NOT NULL REFERENCES pay_links (id),
|
||||
payment_hash TEXT NOT NULL,
|
||||
webhook_sent INT, -- null means not sent, otherwise store status
|
||||
expiry INT
|
||||
);
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user