mirror of
https://github.com/bitwarden/server
synced 2025-12-28 22:23:30 +00:00
cipher updates
move cipher info to favorites and folders sprocs for getting shared cipher information
This commit is contained in:
14
src/SqlUpdate/2017-16-03_01_CipherMigration.sql
Normal file
14
src/SqlUpdate/2017-16-03_01_CipherMigration.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
insert into folder
|
||||
select Id, UserId, JSON_VALUE(Data,'$.Name') AS [Name], CreationDate, RevisionDate
|
||||
from cipher
|
||||
where [type] = 0
|
||||
|
||||
insert into foldercipher
|
||||
select FolderId, Id
|
||||
from cipher
|
||||
where [FolderId] is not null
|
||||
|
||||
insert into favorite
|
||||
select UserId, [Id]
|
||||
from cipher
|
||||
where Favorite = 1
|
||||
Reference in New Issue
Block a user