feat: prepare for merchant active/restoring state

This commit is contained in:
Vlad Stan 2023-07-03 10:37:07 +03:00
parent 16e15939d3
commit b89d761b04
5 changed files with 63 additions and 7 deletions

View file

@ -167,4 +167,9 @@ async def m002_update_stall_and_product(db):
async def m003_update_direct_message_type(db):
await db.execute(
"ALTER TABLE nostrmarket.direct_messages ADD COLUMN type INTEGER NOT NULL DEFAULT -1;"
)
async def m004_add_merchant_timestamp(db):
await db.execute(
f"ALTER TABLE nostrmarket.merchants ADD COLUMN time TIMESTAMP NOT NULL DEFAULT {db.timestamp_now};"
)