feat: content_hash + дедупликация при загрузке

This commit is contained in:
2026-06-28 10:03:52 +04:00
parent fad55182b9
commit 8eae0eec64
3 changed files with 25 additions and 5 deletions
+1
View File
@@ -14,6 +14,7 @@ db_prompts.seed_defaults()
execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS classify_raw text")
execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS classify_input text")
execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS zip_source text")
execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS content_hash text")
# ── DB modules ────────────────────────────────────────────────────────────
from db import supplements as db_supplements