1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

[bug] Drop unused db column UsesCryptoAgent (#1704)

This commit is contained in:
Addison Beck
2021-11-09 12:33:18 -05:00
committed by GitHub
parent 77f9f5fe72
commit 6b629feb03

View File

@ -0,0 +1,22 @@
IF COL_LENGTH('[dbo].[User]', 'UsesCryptoAgent') IS NOT NULL
BEGIN
ALTER TABLE
[dbo].[User]
DROP COLUMN
[UsesCryptoAgent]
END
GO
IF EXISTS(SELECT * FROM sys.views WHERE [Name] = 'UserView')
BEGIN
DROP VIEW [dbo].[UserView]
END
GO
CREATE VIEW [dbo].[UserView]
AS
SELECT
*
FROM
[dbo].[User]
GO