From d28281bf8f34ab0c198fb88252871aa47d94bd6a Mon Sep 17 00:00:00 2001 From: TLSM Date: Sun, 2 Oct 2022 05:11:26 -0400 Subject: [PATCH] Fix ORM trying to INSERT/UPDATE into body_ts. --- files/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 930985107..fc0434b9b 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -60,7 +60,7 @@ class Comment(Base): realupvotes = Column(Integer, default=1) body = Column(String) body_html = Column(String) - body_ts = Column(TSVECTOR) + body_ts = Column(TSVECTOR(), server_default=FetchedValue()) ban_reason = Column(String) wordle_result = Column(String) treasure_amount = Column(String)