Schema update to enable tokenData fetch for passkey session

This commit is contained in:
Neeraj Gupta 2024-06-12 14:27:37 +05:30
parent c95260a228
commit ae170acb30
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
-- Add types for the new dcs that are introduced for the derived data
ALTER TABLE passkey_login_sessions
DROP COLUMN IF EXISTS token_fetch_cnt,
DROP COLUMN IF EXISTS verified_at,
DROP COLUMN IF EXISTS token_data;

View File

@ -0,0 +1,6 @@
-- Add columns to passkey_login_sessions table for facilitating token fetch in case of passkey redirect
-- not working.
ALTER TABLE passkey_login_sessions
ADD COLUMN IF NOT EXISTS token_fetch_cnt int default 0,
ADD COLUMN IF NOT EXISTS verified_at BIGINT,
ADD COLUMN IF NOT EXISTS token_data jsonb;