0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-09-11 21:19:14 +02:00
bitwarden_rs/migrations/sqlite/2018-07-11-181453_create_u2f_twofactor/down.sql

8 lines
170 B
MySQL
Raw Normal View History

UPDATE users
SET totp_secret = (
SELECT twofactor.data FROM twofactor
WHERE twofactor.type = 0
AND twofactor.user_uuid = users.uuid
);
DROP TABLE twofactor;