1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

[EC-343] Recreate OrganizationView to include UseCustomPermissions column

This commit is contained in:
Rui Tome
2022-10-20 15:21:52 +01:00
parent 83888b05b5
commit 7b999b5875

View File

@ -6,6 +6,21 @@ IF COL_LENGTH('[dbo].[Organization]', 'UseCustomPermissions') IS NULL
[UseCustomPermissions] BIT NOT NULL CONSTRAINT [DF_Organization_UseCustomPermissions] DEFAULT (0);
END
GO
-- Recreate OrganizationView so that it includes the UseCustomPermissions column
IF OBJECT_ID('[dbo].[OrganizationView]') IS NOT NULL
BEGIN
DROP VIEW [dbo].[OrganizationView]
END
GO
CREATE VIEW [dbo].[OrganizationView]
AS
SELECT
*
FROM
[dbo].[Organization]
GO
CREATE OR ALTER VIEW [dbo].[OrganizationUserOrganizationDetailsView]
AS