mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
22 lines
365 B
MySQL
22 lines
365 B
MySQL
|
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
|