AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): Unbreak existing Agent Executor nodes (#9928)
Reinier van der Leerb740a6edc00f
diff --git a/autogpt_platform/backend/migrations/20250512104735_rename_agent_executor_node_input/migration.sql b/autogpt_platform/backend/migrations/20250512104735_rename_agent_executor_node_input/migration.sqlnew file mode 100644index 0000000000..a5d7dc496d--- /dev/null+++ b/autogpt_platform/backend/migrations/20250512104735_rename_agent_executor_node_input/migration.sql@@ -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';