lnbits-legend/lnbits/extensions/copilot/migrations.py

34 lines
940 B
Python
Raw Normal View History

2021-04-12 20:31:39 +01:00
async def m001_initial(db):
"""
Initial copilot table.
"""
await db.execute(
"""
CREATE TABLE IF NOT EXISTS copilots (
id TEXT NOT NULL PRIMARY KEY,
user TEXT,
title TEXT,
lnurl_toggle INTEGER,
wallet TEXT,
animation1 TEXT,
animation2 TEXT,
animation3 TEXT,
animation1threshold INTEGER,
animation2threshold INTEGER,
animation3threshold INTEGER,
animation1webhook TEXT,
animation2webhook TEXT,
animation3webhook TEXT,
2021-04-12 20:31:39 +01:00
lnurl_title TEXT,
show_message INTEGER,
show_ack INTEGER,
2021-04-16 11:07:14 +01:00
show_price INTEGER,
amount_made INTEGER,
2021-04-13 19:20:12 +01:00
fullscreen_cam INTEGER,
iframe_url TEXT,
2021-04-12 20:31:39 +01:00
timestamp TIMESTAMP NOT NULL DEFAULT (strftime('%s', 'now'))
);
"""
)