From 8deebc7ac44c3cdd3c94f3ada98000cefe2ae6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Tue, 30 Jun 2026 10:42:14 +0400 Subject: [PATCH] fix: DB_NAME=baza, classify_status DEFAULT pending --- deploy/convert_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/convert_server.py b/deploy/convert_server.py index f6713ab..c6f8949 100755 --- a/deploy/convert_server.py +++ b/deploy/convert_server.py @@ -28,7 +28,8 @@ 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 classify_status text DEFAULT 'pending'") + execute("ALTER TABLE documents ALTER COLUMN classify_status SET DEFAULT 'pending'") 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")