Changes to deactivate/reactivate products (#89)

This commit is contained in:
rleed 2024-11-04 05:59:04 -03:00 committed by GitHub
parent cf82ed478d
commit 83c94e94db
5 changed files with 41 additions and 13 deletions

View file

@ -172,4 +172,9 @@ async def m003_update_direct_message_type(db):
async def m004_add_merchant_timestamp(db):
await db.execute(
f"ALTER TABLE nostrmarket.merchants ADD COLUMN time TIMESTAMP;"
)
async def m005_update_product_activation(db):
await db.execute(
"ALTER TABLE nostrmarket.products ADD COLUMN active BOOLEAN NOT NULL DEFAULT true;"
)