diff --git a/util/Migrator/DbScripts/2020-06-23_01_SsoConfig.sql b/util/Migrator/DbScripts/2020-06-23_01_SsoConfig.sql index 96e3b987fb..05f94384da 100644 --- a/util/Migrator/DbScripts/2020-06-23_01_SsoConfig.sql +++ b/util/Migrator/DbScripts/2020-06-23_01_SsoConfig.sql @@ -41,11 +41,12 @@ BEGIN SET NOCOUNT ON SELECT TOP 1 - * + SSO.* FROM - [dbo].[SsoConfigView] - WHERE - [Identifier] = @Identifier + [dbo].[SsoConfigView] SSO + INNER JOIN + [dbo].[Organization] O ON O.[Id] = SSO.[OrganizationId] + AND O.[Identifier] = @Identifier END GO