mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
The AI-settings migration altered "User" but the table is "users"; deploy would abort with relation "User" does not exist. Correct the identifier and make both v1.22 column additions rerun-safe with IF NOT EXISTS.
7 lines
457 B
SQL
7 lines
457 B
SQL
-- v1.22 (W9, C2) — n-of-1 experiment outcome read-back, encrypted at rest.
|
|
-- An "experiment" is a CoachPlan with a reviewDate; when its review is
|
|
-- processed, the grounded before/after result is written here. Additive,
|
|
-- nullable Bytes column — no backfill, no enum change (the new statuses
|
|
-- review_due / reviewed are app-side strings on the existing `status` column).
|
|
ALTER TABLE "coach_plans" ADD COLUMN IF NOT EXISTS "outcome_encrypted" BYTEA;
|