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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
452 B
MySQL
Raw Normal View History

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