Add qdrant_synced_at column

This commit is contained in:
Aaron Roberts
2026-06-19 17:47:53 +01:00
parent ab19725e0b
commit 38ac36b18e

View File

@@ -54,6 +54,10 @@ def init_db():
ALTER TABLE ocr_jobs ALTER TABLE ocr_jobs
ADD COLUMN IF NOT EXISTS freeform_text TEXT ADD COLUMN IF NOT EXISTS freeform_text TEXT
""") """)
cur.execute("""
ALTER TABLE ocr_jobs
ADD COLUMN IF NOT EXISTS qdrant_synced_at TIMESTAMPTZ
""")
# Unique constraint: prevent duplicate (author, chapter, page) submissions. # Unique constraint: prevent duplicate (author, chapter, page) submissions.
# Applies only when all three fields are non-null. # Applies only when all three fields are non-null.
cur.execute(""" cur.execute("""