fix: do not add a default for merchant time column
This commit is contained in:
parent
3d2d8198bc
commit
927d8661ef
2 changed files with 2 additions and 2 deletions
|
|
@ -171,5 +171,5 @@ 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 NOT NULL DEFAULT {db.timestamp_now};"
|
||||
f"ALTER TABLE nostrmarket.merchants ADD COLUMN time TIMESTAMP;"
|
||||
)
|
||||
|
|
@ -54,7 +54,7 @@ class PartialMerchant(BaseModel):
|
|||
|
||||
class Merchant(PartialMerchant, Nostrable):
|
||||
id: str
|
||||
time: Optional[int]
|
||||
time: Optional[int] = 0
|
||||
|
||||
def sign_hash(self, hash: bytes) -> str:
|
||||
return sign_message_hash(self.private_key, hash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue