Commit240d735unknown_key
Merge pull request #112 from ccantynz-alt/claude/site-audit-competitive-pctlwg
Merge pull request #112 from ccantynz-alt/claude/site-audit-competitive-pctlwg Fix migration 0087: pr_previews FK columns must be uuid, not text
1 file changed+2−2240d735b8c244ba46060e6e7b71b8651699f5804
1 changed file+2−2
Modifieddrizzle/0087_pr_preview_builder.sql+2−2View fileUnifiedSplit
@@ -17,8 +17,8 @@ ALTER TABLE repositories ADD COLUMN IF NOT EXISTS preview_output_dir text DEFAUL
1717-- ── pr_previews ─────────────────────────────────────────────────────────────
1818CREATE TABLE IF NOT EXISTS pr_previews (
1919 id serial PRIMARY KEY,
20 repo_id text NOT NULL REFERENCES repositories(id) ON DELETE CASCADE,
21 pr_id text NOT NULL REFERENCES pull_requests(id) ON DELETE CASCADE,
20 repo_id uuid NOT NULL REFERENCES repositories(id) ON DELETE CASCADE,
21 pr_id uuid NOT NULL REFERENCES pull_requests(id) ON DELETE CASCADE,
2222 branch_name text NOT NULL,
2323 head_sha text NOT NULL,
2424 status text NOT NULL DEFAULT 'building', -- building | ready | failed
2525