From 0e7b4b66ec8862fbd22fde1da77f65effaff980a Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Mon, 29 Dec 2025 08:36:50 -0300 Subject: [PATCH] Add DROP TABLE for knowledge base tables to fix migration --- migrations/6.1.3_knowledge_base_sources/up.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/migrations/6.1.3_knowledge_base_sources/up.sql b/migrations/6.1.3_knowledge_base_sources/up.sql index 2711edc0..06265bfb 100644 --- a/migrations/6.1.3_knowledge_base_sources/up.sql +++ b/migrations/6.1.3_knowledge_base_sources/up.sql @@ -2,6 +2,11 @@ -- Description: Tables for document ingestion, chunking, and RAG support -- Note: Vector embeddings are stored in Qdrant, not PostgreSQL +-- Drop existing tables for clean state +DROP TABLE IF EXISTS research_search_history CASCADE; +DROP TABLE IF EXISTS knowledge_chunks CASCADE; +DROP TABLE IF EXISTS knowledge_sources CASCADE; + -- Table for knowledge sources (uploaded documents) CREATE TABLE IF NOT EXISTS knowledge_sources ( id TEXT PRIMARY KEY,