From 38ac36b18e9b7c7d6d1e1bc6a4e20064a0654dd1 Mon Sep 17 00:00:00 2001 From: Aaron Roberts Date: Fri, 19 Jun 2026 17:47:53 +0100 Subject: [PATCH] Add qdrant_synced_at column --- backend/database.py | 4 ++++ 1 file changed, 4 insertions(+) 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("""