mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
20 lines
393 B
Python
20 lines
393 B
Python
from lnbits.db import open_ext_db
|
|
|
|
|
|
def m001_initial(db):
|
|
"""
|
|
Initial tposs table.
|
|
"""
|
|
db.execute("""
|
|
CREATE TABLE IF NOT EXISTS tposs (
|
|
id TEXT PRIMARY KEY,
|
|
wallet TEXT NOT NULL,
|
|
name TEXT NOT NULL,
|
|
currency TEXT NOT NULL
|
|
);
|
|
""")
|
|
|
|
|
|
def migrate():
|
|
with open_ext_db("tpos") as db:
|
|
m001_initial(db)
|