fix workflow default updated_at (#28047)

This commit is contained in:
Will 2025-11-10 17:20:38 +08:00 committed by CodingOnStar
parent 1464c97a30
commit 03a00d9bd6
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ class Workflow(Base):
updated_at: Mapped[datetime] = mapped_column(
DateTime,
nullable=False,
default=func.current_timestamp(),
server_default=func.current_timestamp(),
onupdate=func.current_timestamp(),
)