fix: DB_NAME=baza, classify_status DEFAULT pending
Deploy contracts-flask / validate (push) Successful in 0s

This commit is contained in:
2026-06-30 10:42:14 +04:00
parent 3176436b64
commit 8deebc7ac4
+2 -1
View File
@@ -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")