Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

Delete scripts/create_integrity_tables.py

LearningCircuita0025bde7cb9
diff --git a/scripts/create_integrity_tables.py b/scripts/create_integrity_tables.py
deleted file mode 100644
index ae441d98fa..0000000000
--- a/scripts/create_integrity_tables.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env python3
-"""
-Create missing file_integrity tables in the database.
-Run this script to add the tables needed for the file integrity system.
-"""
-
-import sys
-from pathlib import Path
-
-# Add src to path
-sys.path.insert(0, str(Path(__file__).parent.parent / "src"))
-
-from local_deep_research.database.models.file_integrity import (
- FileIntegrityRecord,
- FileVerificationFailure,
-)
-from local_deep_research.database.session_context import get_user_db_session
-from loguru import logger
-
-
-def create_integrity_tables(username: str):
- """Create file integrity tables for a user."""
- logger.info(f"Creating file integrity tables for user: {username}")
-
- try:
- with get_user_db_session(username) as session:
- connection = session.connection()
-
- # Create tables if they don't exist
- FileIntegrityRecord.__table__.create(bind=connection, checkfirst=True)
- FileVerificationFailure.__table__.create(bind=connection, checkfirst=True)
-
- # Commit the DDL changes
- session.commit()
-
- logger.info("✓ File integrity tables created successfully!")
- return True
- except Exception as e:
- logger.exception(f"✗ Failed to create tables: {e}")
- return False
-
-
-if __name__ == "__main__":
- if len(sys.argv) < 2:
- print("Usage: python create_integrity_tables.py <username>")
- print("Example: python create_integrity_tables.py a0006")
- sys.exit(1)
-
- username = sys.argv[1]
- success = create_integrity_tables(username)
- sys.exit(0 if success else 1)