From 3176436b6405c7062c24e9b2701e918a89e3ec52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Tue, 30 Jun 2026 10:33:51 +0400 Subject: [PATCH] fix: missing columns migration (classify_status, doc_type, etc.) --- deploy/convert_server.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy/convert_server.py b/deploy/convert_server.py index edff248..f6713ab 100755 --- a/deploy/convert_server.py +++ b/deploy/convert_server.py @@ -28,6 +28,12 @@ try: execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS zip_source text") execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS content_hash text") execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS batch_id uuid") + execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS classify_status text") + execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS doc_type text") + execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS own_number text") + execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS parent_number text") + execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS doc_date date") + execute("ALTER TABLE documents ADD COLUMN IF NOT EXISTS counterparty text") # ── DB modules ──────────────────────────────────────────────────────────── from db import supplements as db_supplements