mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Added get for sso config repo by revision date (#878)
This commit is contained in:
21
util/Migrator/DbScripts/2020-08-19_00_SsoConfigGetAll.sql
Normal file
21
util/Migrator/DbScripts/2020-08-19_00_SsoConfigGetAll.sql
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
Reference in New Issue
Block a user