From c44b70e77ed1a56ff3a20046faee205015b3e93f Mon Sep 17 00:00:00 2001 From: mptyl Date: Tue, 11 Aug 2026 19:42:17 +0200 Subject: [PATCH] fix: expose same-name FK candidates from the controlled DWH stub --- backend/scripts/p2-acceptance.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/scripts/p2-acceptance.mjs b/backend/scripts/p2-acceptance.mjs index 5a5e22ee..ac133d7e 100644 --- a/backend/scripts/p2-acceptance.mjs +++ b/backend/scripts/p2-acceptance.mjs @@ -566,7 +566,9 @@ async function startServers(ctx) { column, type: inferColumnType(first[column]), nullable: false, - pk: column === "id", + // `patient_id` is marked as a primary key so the same-name FK heuristic can discover + // joins from every table that carries it, giving the full-run FK checkpoint candidates. + pk: column === "id" || column === "patient_id", default: null, }))); return;