mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
add api support for updating org identifier (#861)
* add api support for updating org identifier * add identifier to response as well * implement in EF repo
This commit is contained in:
20
util/Migrator/DbScripts/2020-08-12_00_OrgIdentifierProc.sql
Normal file
20
util/Migrator/DbScripts/2020-08-12_00_OrgIdentifierProc.sql
Normal file
@ -0,0 +1,20 @@
|
||||
IF OBJECT_ID('[dbo].[Organization_ReadByIdentifier]') IS NOT NULL
|
||||
BEGIN
|
||||
DROP PROCEDURE [dbo].[Organization_ReadByIdentifier]
|
||||
END
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[Organization_ReadByIdentifier]
|
||||
@Identifier UNIQUEIDENTIFIER
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
[dbo].[OrganizationView]
|
||||
WHERE
|
||||
[Identifier] = @Identifier
|
||||
END
|
||||
GO
|
Reference in New Issue
Block a user