Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix workflow default updated_at (#28047)

Willed234e311b57
diff --git a/api/models/workflow.py b/api/models/workflow.py
index 18757c64aea..ed30821bc0e 100644
--- a/api/models/workflow.py
+++ b/api/models/workflow.py
@@ -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(),
)