mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-20 10:33:55 +00:00
9 lines
228 B
SQL
9 lines
228 B
SQL
-- Transfer favorite status for user-owned ciphers.
|
|
INSERT INTO favorites(user_uuid, cipher_uuid)
|
|
SELECT user_uuid, uuid
|
|
FROM ciphers
|
|
WHERE favorite = TRUE
|
|
AND user_uuid IS NOT NULL;
|
|
|
|
ALTER TABLE ciphers
|
|
DROP COLUMN favorite;
|