mirror of
https://github.com/bitwarden/server.git
synced 2024-12-01 13:43:23 +01:00
35 lines
623 B
MySQL
35 lines
623 B
MySQL
|
IF OBJECT_ID('[dbo].[OrganizationConnection_Create]') IS NOT NULL
|
||
|
BEGIN
|
||
|
DROP PROCEDURE [dbo].[OrganizationConnection_Create]
|
||
|
END
|
||
|
GO
|
||
|
|
||
|
CREATE PROCEDURE [dbo].[OrganizationConnection_Create]
|
||
|
@Id UNIQUEIDENTIFIER OUTPUT,
|
||
|
@OrganizationId UNIQUEIDENTIFIER,
|
||
|
@Type TINYINT,
|
||
|
@Enabled BIT,
|
||
|
@Config NVARCHAR(MAX)
|
||
|
AS
|
||
|
BEGIN
|
||
|
SET NOCOUNT ON
|
||
|
|
||
|
INSERT INTO [dbo].[OrganizationConnection]
|
||
|
(
|
||
|
[Id],
|
||
|
[OrganizationId],
|
||
|
[Type],
|
||
|
[Enabled],
|
||
|
[Config]
|
||
|
)
|
||
|
VALUES
|
||
|
(
|
||
|
@Id,
|
||
|
@OrganizationId,
|
||
|
@Type,
|
||
|
@Enabled,
|
||
|
@Config
|
||
|
)
|
||
|
END
|
||
|
GO
|