From 12ad685b31fcdd6c968c3be03314552c818728cc Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 27 Nov 2023 21:04:48 +0300 Subject: [PATCH] schema-fix --- orm/reaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/reaction.py b/orm/reaction.py index 1073305..4581eb4 100644 --- a/orm/reaction.py +++ b/orm/reaction.py @@ -29,7 +29,7 @@ class ReactionKind(Enumeration): class Reaction(Base): __tablename__ = "reaction" - body = Column(String, nullable=True, comment="Reaction Body") + body = Column(String, default='', comment="Reaction Body") created_at = Column(Integer, nullable=False, default=lambda: int(time.time())) created_by = Column(ForeignKey("author.id"), nullable=False, index=True) updated_at = Column(Integer, nullable=True, comment="Updated at")