Files
HealthLog/prisma/migrations/0339_retire_wizard_columns/migration.sql
T
Marc-André Bombeck a062610895 Retire the five-step wizard's route, goals and columns
The needs-based flow is the one setup flow now. POST /api/onboarding/step
and the six goal slugs go, and with them the two account columns the
wizard kept — its checkpoint and its goal list — through a migration
that drops them; onboarding_completed_at stays as the first-run
redirect's gate. The one durable effect the goals had, the dashboard
tile order, moves to the completion route: the answers now carry both
halves of Q2, which modules are on and what sits on top, and the seed
keeps the wizard's one contract of writing only while the layout column
is still unset.

The OpenAPI table loses the step path and the completion's description
says what the route does today; the demo-allowlist test names a
mutation that still exists.
2026-09-10 15:32:35 +02:00

12 lines
609 B
SQL

-- v1.39 (C2) — retire the five-step wizard's two columns.
--
-- `onboarding_step` held the wizard's checkpoint (0..4) and `onboarding_goals`
-- the six goal slugs whose only durable effect was a one-time dashboard seed.
-- The needs-based flow keeps its state on `onboarding_records` and seeds the
-- dashboard from the answers there, so nothing reads or writes either column
-- any more. `onboarding_completed_at` stays: it is the first-run redirect's
-- gate and the needs flow keeps stamping it.
ALTER TABLE "users"
DROP COLUMN IF EXISTS "onboarding_step",
DROP COLUMN IF EXISTS "onboarding_goals";