From 752b2a9cb033d29eb8429cdba934201dc3286bb1 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 7 Oct 2026 21:07:54 +0000 Subject: [PATCH] fix(core): Drop the unused Assistant memory table before its threads table (no-changelog) The migration that moves Assistant threads to the Agents runtime now also drops instance_ai_observational_memory. That table is unused and has a foreign key to instance_ai_threads, so the threads table could not be dropped cleanly. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018gK4jZbBjL8toMAnrfJ4mh --- .../common/1791239936967-MoveInstanceAiThreadsToAgents.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@n8n/db/src/migrations/common/1791239936967-MoveInstanceAiThreadsToAgents.ts b/packages/@n8n/db/src/migrations/common/1791239936967-MoveInstanceAiThreadsToAgents.ts index a978d410fd7..4db01905d6a 100644 --- a/packages/@n8n/db/src/migrations/common/1791239936967-MoveInstanceAiThreadsToAgents.ts +++ b/packages/@n8n/db/src/migrations/common/1791239936967-MoveInstanceAiThreadsToAgents.ts @@ -12,6 +12,8 @@ const replacedTables = [ 'instance_ai_observation_locks', 'instance_ai_resources', 'instance_ai_thread_grants', + // Unused since the observation tables replaced it, but it still has a foreign key to the threads table. + 'instance_ai_observational_memory', ]; /** Assistant data that stays, but belongs to an Agents session now. */