Files
f0ckm/migrations/add_session_passkey_credential.sql
T
2026-09-29 04:35:35 +02:00

7 lines
386 B
SQL

-- Migration: remember which passkey opened a session
-- Set on passkey sign-in (registered and anonymous). The passkey a session is using can't be deleted
-- from that session, and the settings page marks it as "This session". NULL = password login or a
-- session from before this column existed.
ALTER TABLE public.user_sessions ADD COLUMN IF NOT EXISTS passkey_credential_id TEXT;