From 359a6ee49581eb6959f3c875ea81d9bd440e9972 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 24 Apr 2026 15:48:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(test-schema):=20approval=5Frecords=20?= =?UTF-8?q?=E8=A3=9C=20matched=5Fplaybook=5Fid=20=E6=AC=84=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI B5 整合測試失敗根因:04ff225 在 ORM model 加 matched_playbook_id, 但 tests/integration/setup_test_schema.sql 未同步,導致 test_approval_lifecycle / test_incident_approval_association 拋 UndefinedColumnError 阻擋 CD Pipeline build-and-deploy。 Co-Authored-By: Claude Sonnet 4.6 --- apps/api/tests/integration/setup_test_schema.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/api/tests/integration/setup_test_schema.sql b/apps/api/tests/integration/setup_test_schema.sql index aa8c73f4..c88176fc 100644 --- a/apps/api/tests/integration/setup_test_schema.sql +++ b/apps/api/tests/integration/setup_test_schema.sql @@ -70,6 +70,7 @@ CREATE TABLE IF NOT EXISTS approval_records ( incident_id VARCHAR, telegram_message_id INTEGER, telegram_chat_id INTEGER, + matched_playbook_id VARCHAR(36), created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), expires_at TIMESTAMPTZ,