fix workflow default updated_at (#28047)

This commit is contained in:
Will 2025-11-10 17:20:38 +08:00 committed by GitHub
parent 9843fec393
commit ed234e311b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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(),
)