mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +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
|