Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Schema update to enable tokenData fetch for passkey session

Neeraj Guptaae170acb3088
diff --git a/server/migrations/87_passkey_login_token.down.sql b/server/migrations/87_passkey_login_token.down.sql
new file mode 100644
index 0000000000..1af9da976c
--- /dev/null
+++ b/server/migrations/87_passkey_login_token.down.sql
@@ -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;
diff --git a/server/migrations/87_passkey_login_token.up.sql b/server/migrations/87_passkey_login_token.up.sql
new file mode 100644
index 0000000000..0c44050aca
--- /dev/null
+++ b/server/migrations/87_passkey_login_token.up.sql
@@ -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;