1
0
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:
Kyle Spearrin
2017-03-17 09:29:46 -04:00
parent 1d3092b6b2
commit 3e0c0224b5
16 changed files with 96 additions and 64 deletions

View 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