fix(test-schema): approval_records 補 matched_playbook_id 欄位
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

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 <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-04-24 15:48:37 +08:00
parent 04ff22563e
commit 359a6ee495

View File

@@ -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,