Files
HealthLog/prisma/migrations/0180_v1187_share_link_passphrase/migration.sql
T
Marc-André Bombeck ce684cc429 chore(db): renumber the share-link passphrase migration to 0180
The status-batching work claimed no migration, so the passphrase column
takes 0180 and the sequence stays gapless after 0179.
2026-06-19 22:07:46 +02:00

8 lines
472 B
SQL

-- v1.18.7 — passphrase second factor for clinician share links.
-- A leaked share URL on its own no longer opens the record: every new
-- link carries a high-entropy passphrase, stored only as its HMAC-SHA256
-- hash (same key as token_hash). The column is NULLABLE so every link
-- minted before this change keeps the possession-only contract and the
-- public view renders for it without a gate.
ALTER TABLE "clinician_share_links" ADD COLUMN "passphrase_hash" TEXT;