mirror of
https://github.com/bitwarden/server.git
synced 2024-11-30 13:33:24 +01:00
22 lines
452 B
Transact-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
|