Add DROP TABLE for knowledge base tables to fix migration
This commit is contained in:
parent
6aceb4bc59
commit
0e7b4b66ec
1 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,11 @@
|
||||||
-- Description: Tables for document ingestion, chunking, and RAG support
|
-- Description: Tables for document ingestion, chunking, and RAG support
|
||||||
-- Note: Vector embeddings are stored in Qdrant, not PostgreSQL
|
-- 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)
|
-- Table for knowledge sources (uploaded documents)
|
||||||
CREATE TABLE IF NOT EXISTS knowledge_sources (
|
CREATE TABLE IF NOT EXISTS knowledge_sources (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue