1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-25 17:27:45 +01:00
bitwarden-server/util/Migrator/DbScripts/2021-11-09_00_DropUsesCryptoAgent.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
365 B
MySQL
Raw Normal View History

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