mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
36 lines
668 B
Python
36 lines
668 B
Python
async def m001_initial(db):
|
|
"""
|
|
Initial tposs table.
|
|
"""
|
|
await db.execute(
|
|
"""
|
|
CREATE TABLE tpos.tposs (
|
|
id TEXT PRIMARY KEY,
|
|
wallet TEXT NOT NULL,
|
|
name TEXT NOT NULL,
|
|
currency TEXT NOT NULL
|
|
);
|
|
"""
|
|
)
|
|
|
|
|
|
async def m002_addtip_wallet(db):
|
|
"""
|
|
Add tips to tposs table
|
|
"""
|
|
await db.execute(
|
|
"""
|
|
ALTER TABLE tpos.tposs ADD tip_wallet TEXT NULL;
|
|
"""
|
|
)
|
|
|
|
|
|
async def m003_addtip_options(db):
|
|
"""
|
|
Add tips to tposs table
|
|
"""
|
|
await db.execute(
|
|
"""
|
|
ALTER TABLE tpos.tposs ADD tip_options TEXT NULL;
|
|
"""
|
|
)
|