mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(backend): Unbreak existing Agent Executor nodes (#9928)
- Follow-up fix for #9862 ### Changes 🏗️ - Rename the stored `data` input field to `inputs` on all Agent Executor nodes in the DB ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Dry-run the query in Supabase to verify that the data operation works - [x] CI
This commit is contained in:
committed by
GitHub
parent
c5946927ea
commit
b740a6edc0
@@ -0,0 +1,9 @@
|
||||
-- Rename 'data' input to 'inputs' on all Agent Executor nodes
|
||||
UPDATE "AgentNode" AS node
|
||||
SET "constantInput" = jsonb_set(
|
||||
"constantInput",
|
||||
'{inputs}',
|
||||
"constantInput"->'data'
|
||||
) - 'data'
|
||||
WHERE node."agentBlockId" = 'e189baac-8c20-45a1-94a7-55177ea42565'
|
||||
AND node."constantInput" ? 'data';
|
||||
Reference in New Issue
Block a user