1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00
bitwarden-server/util/Migrator/DbScripts/2020-08-19_00_SsoConfigGetAll.sql

22 lines
452 B
Transact-SQL

IF OBJECT_ID('[dbo].[SsoConfig_ReadManyByNotBeforeRevisionDate]') IS NOT NULL
BEGIN
DROP PROCEDURE [dbo].[SsoConfig_ReadManyByNotBeforeRevisionDate]
END
GO
CREATE PROCEDURE [dbo].[SsoConfig_ReadManyByNotBeforeRevisionDate]
@NotBefore DATETIME2(7)
AS
BEGIN
SET NOCOUNT ON
SELECT
*
FROM
[dbo].[SsoConfigView]
WHERE
[Enabled] = 1
AND [RevisionDate] >= COALESCE(@NotBefore, [RevisionDate]);
END
GO