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(migrations): correct schema reference in service API history migration (#10452)

-LAN-78a380bcc404
diff --git a/api/migrations/versions/2024_10_09_1329-d8e744d88ed6_fix_wrong_service_api_history.py b/api/migrations/versions/2024_10_09_1329-d8e744d88ed6_fix_wrong_service_api_history.py
index b3b8dfa7d4f..38a5cdf8e50 100644
--- a/api/migrations/versions/2024_10_09_1329-d8e744d88ed6_fix_wrong_service_api_history.py
+++ b/api/migrations/versions/2024_10_09_1329-d8e744d88ed6_fix_wrong_service_api_history.py
@@ -23,7 +23,7 @@ v0_9_0_release_date= '2024-09-29 12:00:00'
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
sql = f"""UPDATE
- public.messages
+ messages
SET
parent_message_id = '{UUID_NIL}'
WHERE
@@ -37,7 +37,7 @@ WHERE
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
sql = f"""UPDATE
- public.messages
+ messages
SET
parent_message_id = NULL
WHERE