Product delete (#64)
* feat: restore stalls from `nostr` as pending * feat: stall and prod last update time * feat: restore products and stalls as `pending` * feat: show pending stalls * feat: restore stall * feat: restore a stall from nostr * feat: add blank `Restore Product` button * fix: handle no talls to restore case * feat: show restore dialog * feat: allow query for pending products * feat: restore products * chore: code clean-up * fix: last dm and last order query * chore: code clean-up * fix: subscribe for stalls and products on merchant create/restore * feat: add message type to orders * feat: simplify messages; code format * feat: add type to DMs; restore DMs from nostr * fix: parsing ints * fix: hide copy button if invoice not present * fix: do not generate invoice if product not found * feat: order restore: first version * refactor: move some logic into `services` * feat: improve restore UX * fix: too many calls to customer DMs * fix: allow `All` customers filter * fix: ws reconnect on server restart * fix: query for customer profiles only one * fix: unread messages per customer per merchant * fix: disable `user-profile-events` * fix: customer profile is optional * fix: get customers after new message debounced * chore: code clean-up * feat: auto-create zone * feat: fixed ID for default zone * feat: notify order paid
This commit is contained in:
parent
1cb8fe86b1
commit
51c4147e65
17 changed files with 934 additions and 610 deletions
|
|
@ -141,3 +141,30 @@ async def m001_initial(db):
|
|||
);
|
||||
"""
|
||||
)
|
||||
|
||||
async def m002_update_stall_and_product(db):
|
||||
await db.execute(
|
||||
"ALTER TABLE nostrmarket.stalls ADD COLUMN pending BOOLEAN NOT NULL DEFAULT false;"
|
||||
)
|
||||
await db.execute(
|
||||
"ALTER TABLE nostrmarket.stalls ADD COLUMN event_id TEXT;"
|
||||
)
|
||||
await db.execute(
|
||||
"ALTER TABLE nostrmarket.stalls ADD COLUMN event_created_at INTEGER;"
|
||||
)
|
||||
|
||||
await db.execute(
|
||||
"ALTER TABLE nostrmarket.products ADD COLUMN pending BOOLEAN NOT NULL DEFAULT false;"
|
||||
)
|
||||
await db.execute(
|
||||
"ALTER TABLE nostrmarket.products ADD COLUMN event_id TEXT;"
|
||||
)
|
||||
await db.execute(
|
||||
"ALTER TABLE nostrmarket.products ADD COLUMN event_created_at INTEGER;"
|
||||
)
|
||||
|
||||
|
||||
async def m003_update_direct_message_type(db):
|
||||
await db.execute(
|
||||
"ALTER TABLE nostrmarket.direct_messages ADD COLUMN type INTEGER NOT NULL DEFAULT -1;"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue