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(housekeeping): exclude files that are used as app icons or avatar images from being removed (#20532)

kurokoboc26e1929d660
diff --git a/api/commands.py b/api/commands.py
index 66278a53a3d..6262bfde6bc 100644
--- a/api/commands.py
+++ b/api/commands.py
@@ -846,6 +846,9 @@ def clear_orphaned_file_records(force: bool):
{"type": "text", "table": "workflow_node_executions", "column": "outputs"},
{"type": "text", "table": "conversations", "column": "introduction"},
{"type": "text", "table": "conversations", "column": "system_instruction"},
+ {"type": "text", "table": "accounts", "column": "avatar"},
+ {"type": "text", "table": "apps", "column": "icon"},
+ {"type": "text", "table": "sites", "column": "icon"},
{"type": "json", "table": "messages", "column": "inputs"},
{"type": "json", "table": "messages", "column": "message"},
]