Files
pokemon-inventory/database/migrations/0002_session_csrf_tokens.sql
T
fragginwagon c728016dec feat: establish auth listing and image vertical slices
Includes MFA-capable authentication, session and CSRF security, password recovery, listing lifecycle and ownership rules, inventory image metadata, local ImageStorage, migrations, tests, and implementation status documentation. Verification: npm test (62 passing) and integration suite (14 passing).
2026-09-08 17:32:03 -04:00

5 lines
205 B
SQL

ALTER TABLE "sessions" ADD COLUMN "csrf_token_hash" text;
UPDATE "sessions" SET "csrf_token_hash" = '' WHERE "csrf_token_hash" IS NULL;
ALTER TABLE "sessions" ALTER COLUMN "csrf_token_hash" SET NOT NULL;