mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -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]
|
Reference in New Issue
Block a user