make field nullable

This commit is contained in:
Evan Lohn
2025-01-24 14:46:56 -08:00
parent 5e9b2e41ae
commit eea6f2749a
2 changed files with 2 additions and 3 deletions

View File

@@ -22,8 +22,7 @@ def upgrade() -> None:
sa.Column( sa.Column(
"refined_answer_improvement", "refined_answer_improvement",
sa.Boolean(), sa.Boolean(),
server_default=sa.true(), nullable=True,
nullable=False,
), ),
) )

View File

@@ -1204,7 +1204,7 @@ class ChatMessage(Base):
DateTime(timezone=True), server_default=func.now() DateTime(timezone=True), server_default=func.now()
) )
refined_answer_improvement: Mapped[bool] = mapped_column(Boolean, default=True) refined_answer_improvement: Mapped[bool] = mapped_column(Boolean, nullable=True)
chat_session: Mapped[ChatSession] = relationship("ChatSession") chat_session: Mapped[ChatSession] = relationship("ChatSession")
prompt: Mapped[Optional["Prompt"]] = relationship("Prompt") prompt: Mapped[Optional["Prompt"]] = relationship("Prompt")