1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-10 20:07:56 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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