lnbits-legend/lnbits/extensions/amilk/migrations.py
2020-09-04 21:33:30 -03:00

15 lines
333 B
Python

def m001_initial(db):
"""
Initial amilks table.
"""
db.execute(
"""
CREATE TABLE IF NOT EXISTS amilks (
id TEXT PRIMARY KEY,
wallet TEXT NOT NULL,
lnurl TEXT NOT NULL,
atime INTEGER NOT NULL,
amount INTEGER NOT NULL
);
"""
)