Files
edgeever/migrations/0052_memo_share_passwords.sql
T
tianma-if dcfd11468d feat(sharing): add optional password protection for public note shares
Allow owners to turn on an auto-generated access password when sharing a note. Visitors must unlock the share page before reading the note or its attachments; existing public links stay open until a password is enabled.
2026-09-17 14:44:43 +08:00

7 lines
293 B
SQL

PRAGMA foreign_keys = ON;
ALTER TABLE memo_shares ADD COLUMN password_hash TEXT;
ALTER TABLE memo_shares ADD COLUMN unlock_failed_count INTEGER NOT NULL DEFAULT 0;
ALTER TABLE memo_shares ADD COLUMN unlock_window_started_at TEXT;
ALTER TABLE memo_shares ADD COLUMN unlock_blocked_until TEXT;