diff --git a/backend/database.py b/backend/database.py index 416b7c0..4d5f1ed 100644 --- a/backend/database.py +++ b/backend/database.py @@ -54,6 +54,10 @@ def init_db(): ALTER TABLE ocr_jobs 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. # Applies only when all three fields are non-null. cur.execute("""