mirror of
https://github.com/bitwarden/server.git
synced 2025-04-07 05:58:13 -05:00
Requested updates
This commit is contained in:
parent
09df3f64d3
commit
05891f2122
@ -5,9 +5,12 @@ BEGIN
|
|||||||
SET NOCOUNT ON
|
SET NOCOUNT ON
|
||||||
|
|
||||||
SELECT TOP 1
|
SELECT TOP 1
|
||||||
*
|
SSO.*,
|
||||||
|
O.[Identifier]
|
||||||
FROM
|
FROM
|
||||||
[dbo].[SsoConfigView]
|
[dbo].[SsoConfigView] SSO
|
||||||
|
INNER JOIN
|
||||||
|
[dbo].[Organization] O ON O.[Id] = SSO.[OrganizationId]
|
||||||
WHERE
|
WHERE
|
||||||
[Identifier] = @Identifier
|
O.[Identifier] = @Identifier
|
||||||
END
|
END
|
||||||
|
@ -44,5 +44,7 @@ CREATE NONCLUSTERED INDEX [IX_Organization_Enabled]
|
|||||||
INCLUDE ([UseTotp]);
|
INCLUDE ([UseTotp]);
|
||||||
|
|
||||||
GO
|
GO
|
||||||
CREATE NONCLUSTERED INDEX [IX_Organization_Identifier]
|
CREATE UNIQUE NONCLUSTERED INDEX [IX_Organization_Identifier]
|
||||||
ON [dbo].[Organization]([Identifier] ASC)
|
ON [dbo].[Organization]([Identifier] ASC)
|
||||||
|
WHERE [Identifier] IS NOT NULL;
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
CREATE VIEW [dbo].[SsoConfigView]
|
CREATE VIEW [dbo].[SsoConfigView]
|
||||||
AS
|
AS
|
||||||
SELECT
|
SELECT
|
||||||
SSO.*
|
*
|
||||||
FROM
|
FROM
|
||||||
[dbo].[SsoConfig] SSO
|
[dbo].[SsoConfig]
|
||||||
INNER JOIN
|
|
||||||
[dbo].[Organization] O ON O.[Identifier] = SSO.[Identifier]
|
|
||||||
|
@ -12,7 +12,8 @@ IF NOT EXISTS (
|
|||||||
AND object_id = OBJECT_ID('[dbo].[Organization]')
|
AND object_id = OBJECT_ID('[dbo].[Organization]')
|
||||||
)
|
)
|
||||||
BEGIN
|
BEGIN
|
||||||
CREATE NONCLUSTERED INDEX [IX_Organization_Identifier]
|
CREATE UNIQUE NONCLUSTERED INDEX [IX_Organization_Identifier]
|
||||||
ON [dbo].[Organization]([Identifier] ASC)
|
ON [dbo].[Organization]([Identifier] ASC)
|
||||||
|
WHERE [Identifier] IS NOT NULL;
|
||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
@ -23,11 +23,9 @@ GO
|
|||||||
CREATE VIEW [dbo].[SsoConfigView]
|
CREATE VIEW [dbo].[SsoConfigView]
|
||||||
AS
|
AS
|
||||||
SELECT
|
SELECT
|
||||||
SSO.*
|
*
|
||||||
FROM
|
FROM
|
||||||
[dbo].[SsoConfig] SSO
|
[dbo].[SsoConfig]
|
||||||
INNER JOIN
|
|
||||||
[dbo].[Organization] O ON O.[Identifier] = SSO.[Identifier]
|
|
||||||
|
|
||||||
IF OBJECT_ID('[dbo].[SsoConfig_ReadByIdentifier]') IS NOT NULL
|
IF OBJECT_ID('[dbo].[SsoConfig_ReadByIdentifier]') IS NOT NULL
|
||||||
BEGIN
|
BEGIN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user