Added satspay settings migration

This commit is contained in:
Black Coffee 2022-10-24 14:05:30 +01:00 committed by dni ⚡
parent 2c562b7053
commit 2b67169512

View file

@ -37,3 +37,18 @@ async def m002_add_charge_extra_data(db):
ADD COLUMN extra TEXT DEFAULT '{"mempool_endpoint": "https://mempool.space", "network": "Mainnet"}'; ADD COLUMN extra TEXT DEFAULT '{"mempool_endpoint": "https://mempool.space", "network": "Mainnet"}';
""" """
) )
async def m002_add_settings_table(db):
"""
Settings table
"""
await db.execute(
"""
CREATE TABLE satspay.settings (
id TEXT NOT NULL PRIMARY KEY,
"user" TEXT,
custom_css TEXT
);
"""
)