Watch
1
0
Fork
You've already forked vaultwarden
0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2026-11-12 09:09:18 -05:00
vaultwarden/migrations/postgresql/2026-11-02-120000_reset_user_key_id/up.sql

4 lines
260 B
MySQL
Raw Permalink Normal View History

-- Key rotations before this kept the id of the old user key, so every new
-- cipher was refused from then on. Stale ids can't be told apart, so clear
-- all of them; clients record their current key's id again when it's empty.
UPDATE users SET key_id = NULL;