fix: missing columns migration (classify_status, doc_type, etc.)
Deploy contracts-flask / validate (push) Successful in 0s

This commit is contained in:
2026-06-30 10:33:51 +04:00
parent 87e68bd9b1
commit 3176436b64
+6
View File
@@ -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