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