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(models): correct onupdate typo on trigger.py updated_at columns (#38341)

Yuzif75583060727
diff --git a/api/models/trigger.py b/api/models/trigger.py
index 69df086638d..abab8dfb2cb 100644
--- a/api/models/trigger.py
+++ b/api/models/trigger.py
@@ -125,7 +125,7 @@ class TriggerSubscription(TypeBase):
DateTime,
nullable=False,
server_default=func.current_timestamp(),
- server_onupdate=func.current_timestamp(),
+ onupdate=func.current_timestamp(),
init=False,
)
@@ -180,7 +180,7 @@ class TriggerOAuthSystemClient(TypeBase):
DateTime,
nullable=False,
server_default=func.current_timestamp(),
- server_onupdate=func.current_timestamp(),
+ onupdate=func.current_timestamp(),
init=False,
)
@@ -210,7 +210,7 @@ class TriggerOAuthTenantClient(TypeBase):
DateTime,
nullable=False,
server_default=func.current_timestamp(),
- server_onupdate=func.current_timestamp(),
+ onupdate=func.current_timestamp(),
init=False,
)
@@ -370,7 +370,7 @@ class WorkflowWebhookTrigger(TypeBase):
DateTime,
nullable=False,
server_default=func.current_timestamp(),
- server_onupdate=func.current_timestamp(),
+ onupdate=func.current_timestamp(),
init=False,
)
@@ -430,7 +430,7 @@ class WorkflowPluginTrigger(TypeBase):
DateTime,
nullable=False,
server_default=func.current_timestamp(),
- server_onupdate=func.current_timestamp(),
+ onupdate=func.current_timestamp(),
init=False,
)
@@ -479,7 +479,7 @@ class AppTrigger(TypeBase):
DateTime,
nullable=False,
default=naive_utc_now(),
- server_onupdate=func.current_timestamp(),
+ onupdate=naive_utc_now(),
init=False,
)