mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-25 13:30:39 +00:00
Implement suggested improvements
This commit is contained in:
parent
c3be1b4298
commit
a0796acbc7
5 changed files with 7 additions and 8 deletions
|
@ -22,8 +22,8 @@ CREATE TABLE folders_ciphers (
|
|||
PRIMARY KEY (cipher_uuid, folder_uuid)
|
||||
);
|
||||
|
||||
INSERT INTO ciphers (uuid, created_at, updated_at, organization_uuid, type, name, notes, fields, data, favorite)
|
||||
SELECT uuid, created_at, updated_at, organization_uuid, type, name, notes, fields, data, favorite FROM oldCiphers;
|
||||
INSERT INTO ciphers (uuid, created_at, updated_at, user_uuid, organization_uuid, type, name, notes, fields, data, favorite)
|
||||
SELECT uuid, created_at, updated_at, user_uuid, organization_uuid, type, name, notes, fields, data, favorite FROM oldCiphers;
|
||||
|
||||
INSERT INTO folders_ciphers (cipher_uuid, folder_uuid)
|
||||
SELECT uuid, folder_uuid FROM oldCiphers WHERE folder_uuid IS NOT NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue