From daa85a8bb4873a20b7be7102b05c8f726af8466a Mon Sep 17 00:00:00 2001 From: root Date: Mon, 28 Sep 2026 02:47:17 +0800 Subject: [PATCH] test(db): expect pi_upstream and scheduled_job tables in schema test Co-Authored-By: Claude Opus 5.5 --- packages/db/test/schema.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/db/test/schema.test.ts b/packages/db/test/schema.test.ts index e9c336d4..7091c810 100644 --- a/packages/db/test/schema.test.ts +++ b/packages/db/test/schema.test.ts @@ -94,6 +94,11 @@ const EXPECTED_TABLES = [ "slot_deferral", "slot_unit", "subscription_history", + // W7-A Pi 上游(0027) + "pi_upstream", + // W7-C 定时任务注册表(0028) + "scheduled_job", + "scheduled_job_run", ].sort(); /** 不走 entityTable() 的表:追加型/引擎自有表,没有 uuid id + created_at/updated_at 三件套 */ @@ -107,6 +112,9 @@ const NON_ENTITY_TABLES = [ "agent_run_event", "login_attempt", "sse_event", + // 稳定 key 作主键 / 只追加的运行历史 + "scheduled_job", + "scheduled_job_run", ]; describe.skipIf(skip)("schema migrations (real PG)", () => {