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

34 lines
932 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(
2021-07-02 17:36:26 -03:00
f"""
CREATE TABLE copilot.copilots (
2021-04-12 20:31:39 +01:00
id TEXT NOT NULL PRIMARY KEY,
2021-07-02 17:36:26 -03:00
"user" TEXT,
2021-04-12 20:31:39 +01:00
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-06-24 00:33:49 +01:00
show_price INTEGER,
amount_made INTEGER,
2021-04-13 19:20:12 +01:00
fullscreen_cam INTEGER,
iframe_url TEXT,
2021-07-02 17:36:26 -03:00
timestamp TIMESTAMP NOT NULL DEFAULT {db.timestamp_now}
2021-04-12 20:31:39 +01:00
);
"""
)