debug_log: таблица + логи на каждом шаге _chunk_upload, v1.19

This commit is contained in:
2026-06-17 17:49:33 +04:00
parent ba5933b715
commit dfb9a4218b
3 changed files with 43 additions and 9 deletions
+12
View File
@@ -116,6 +116,17 @@ CREATE TABLE IF NOT EXISTS chunks (
);
"""
# ── Таблица debug_log ─────────────────────────────────────────
DDL_DEBUG_LOG = """
CREATE TABLE IF NOT EXISTS debug_log (
id SERIAL PRIMARY KEY,
step TEXT NOT NULL,
detail TEXT,
created_at TIMESTAMPTZ DEFAULT now()
);
"""
# ── Список всех DDL ────────────────────────────────────────────
ALL_DDL = [
@@ -125,6 +136,7 @@ ALL_DDL = [
("spec_rows", DDL_SPEC_ROWS),
("spec_history", DDL_SPEC_HISTORY),
("chunks", DDL_CHUNKS),
("debug_log", DDL_DEBUG_LOG),
]