Files
HealthLog/prisma/migrations/0321_drop_research_mode_columns/migration.sql
T
Marc-André Bombeck 0160052289 refactor(settings): retire Research Mode — the switch governed nothing
Research Mode was the opt-in behind the estimated GLP-1 drug-level curve:
turn it on, read a disclaimer, get the chart. The chart stopped consulting
the flag several releases ago and has painted for every account since, so
the switch on Settings → Advanced changed no screen in either position. An
inert control that promises to hide a chart is worse than no control.

The curve is simply part of the medication page now. Gone with the switch:
the acknowledgment dialog, `/api/auth/me/research-mode`, the shared status
DTO and its gate helper, the disclaimer-version stamp, the query key, and
the three user columns the acknowledgment wrote (migration 0321). The
Privacy page's second button pointed at the retired control and goes too.

Settings → Advanced is now what it reads as: reset the data, delete the
account.
2026-08-08 15:17:05 +02:00

9 lines
481 B
SQL

-- Research Mode is gone: the estimated GLP-1 drug-level curve is part of the
-- medication page for everyone, so the opt-in flag and the two acknowledgment
-- stamps it kept have no reader and no writer left. The endpoint, the
-- acknowledgment dialog and the Settings switch went with them.
ALTER TABLE "users"
DROP COLUMN IF EXISTS "research_mode_enabled",
DROP COLUMN IF EXISTS "research_mode_acknowledged_at",
DROP COLUMN IF EXISTS "research_mode_acknowledged_version";