1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-05 14:23:30 +01:00
bitwarden-server/util/Migrator/DbScripts/2024-08-08_00_DropCipherAndCollectionV2Functions.sql

26 lines
577 B
Transact-SQL

-- chore: drop v2 sprocs and functions that are no longer in use
IF OBJECT_ID('[dbo].[Collection_ReadByUserId_V2]') IS NOT NULL
BEGIN
DROP PROCEDURE [dbo].[Collection_ReadByUserId_V2]
END
GO
IF OBJECT_ID('[dbo].[UserCollectionDetails_V2]') IS NOT NULL
BEGIN
DROP FUNCTION [dbo].[UserCollectionDetails_V2]
END
GO
IF OBJECT_ID('[dbo].[CipherDetails_ReadByUserId_V2]') IS NOT NULL
BEGIN
DROP PROCEDURE [dbo].[CipherDetails_ReadByUserId_V2]
END
GO
IF OBJECT_ID('[dbo].[UserCipherDetails_V2]') IS NOT NULL
BEGIN
DROP FUNCTION [dbo].[UserCipherDetails_V2]
END
GO