fix: flask db check fails due to nullable mismatch between migrations and models (#30474)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Maries <xh001x@hotmail.com>
This commit is contained in:
Toshiki Sugimizu
2026-01-06 21:23:59 +09:00
committed by GitHub
parent 44d7aaaf33
commit f57aa08a3f
3 changed files with 3 additions and 3 deletions

View File

@@ -1534,7 +1534,7 @@ class OperationLog(TypeBase):
tenant_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
account_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
action: Mapped[str] = mapped_column(String(255), nullable=False)
content: Mapped[Any] = mapped_column(sa.JSON)
content: Mapped[Any | None] = mapped_column(sa.JSON, nullable=True)
created_at: Mapped[datetime] = mapped_column(
sa.DateTime, nullable=False, server_default=func.current_timestamp(), init=False
)