From 9ef212675d67fda87572202eca765878bb225d48 Mon Sep 17 00:00:00 2001 From: Atharv1705 Date: Sat, 5 Sep 2026 22:12:39 +0530 Subject: [PATCH] fix: Add missing ai_summary column to admin_documents in migration script --- services/api/migrate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/api/migrate.py b/services/api/migrate.py index 63771c8..1c1759f 100644 --- a/services/api/migrate.py +++ b/services/api/migrate.py @@ -79,6 +79,10 @@ def upgrade(): _add_column(conn, "required_document_templates", "storage_key", "VARCHAR(500) NULL DEFAULT NULL") + # ── v6: AI summary for admin documents ──────────────────────────────── + _add_column(conn, "admin_documents", "ai_summary", "TEXT NULL DEFAULT NULL") + + print("\nAll migrations complete.") except Exception as e: print(f"Migration error: {e}")