mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
Script best practices
This commit is contained in:
@ -7,19 +7,8 @@ BEGIN
|
|||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
-- Recreate View
|
-- Refresh View
|
||||||
IF OBJECT_ID('[dbo].[SendView]') IS NOT NULL
|
EXECUTE sp_refreshview N'[dbo].[{SendView}]'
|
||||||
BEGIN
|
|
||||||
DROP VIEW [dbo].[SendView]
|
|
||||||
END
|
|
||||||
GO
|
|
||||||
|
|
||||||
CREATE VIEW [dbo].[SendView]
|
|
||||||
AS
|
|
||||||
SELECT
|
|
||||||
*
|
|
||||||
FROM
|
|
||||||
[dbo].[Send]
|
|
||||||
GO
|
GO
|
||||||
|
|
||||||
CREATE OR ALTER PROCEDURE [dbo].[Send_Create]
|
CREATE OR ALTER PROCEDURE [dbo].[Send_Create]
|
||||||
@ -90,7 +79,7 @@ BEGIN
|
|||||||
END
|
END
|
||||||
EXEC [dbo].[User_BumpAccountRevisionDate] @UserId
|
EXEC [dbo].[User_BumpAccountRevisionDate] @UserId
|
||||||
END
|
END
|
||||||
-- TODO: OrganizationId bump?
|
-- TODO: OrganizationId bump?
|
||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
@ -140,6 +129,6 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
EXEC [dbo].[User_BumpAccountRevisionDate] @UserId
|
EXEC [dbo].[User_BumpAccountRevisionDate] @UserId
|
||||||
END
|
END
|
||||||
-- TODO: OrganizationId bump?
|
-- TODO: OrganizationId bump?
|
||||||
END
|
END
|
||||||
GO
|
GO
|
Reference in New Issue
Block a user