Files
sprout2fa/migrations/0002_share_token.sql
2026-06-24 22:10:27 +08:00

5 lines
241 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 临时分享:每个账户可选的唯一 share_token用于公开链接仅暴露单条 2FA
ALTER TABLE totp_accounts ADD COLUMN share_token TEXT;
CREATE UNIQUE INDEX IF NOT EXISTS idx_totp_share_token ON totp_accounts (share_token);