From 38257ebeaa1a7922b75c19a496aa22acc7e1351d Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Thu, 4 Jan 2024 16:04:18 -0500 Subject: [PATCH] Try recreate again --- .../DbScripts/2024-01-04_00_Send_Add_CipherId.sql | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/util/Migrator/DbScripts/2024-01-04_00_Send_Add_CipherId.sql b/util/Migrator/DbScripts/2024-01-04_00_Send_Add_CipherId.sql index 15bdd3e501..014f92b26c 100644 --- a/util/Migrator/DbScripts/2024-01-04_00_Send_Add_CipherId.sql +++ b/util/Migrator/DbScripts/2024-01-04_00_Send_Add_CipherId.sql @@ -7,8 +7,19 @@ BEGIN END GO --- Refresh View -EXECUTE sp_refreshview N'[dbo].[SendView]' +-- Recreate View +IF OBJECT_ID('[dbo].[SendView]') IS NOT NULL +BEGIN + DROP VIEW [dbo].[SendView] +END +GO + +CREATE VIEW [dbo].[SendView] +AS + SELECT + * + FROM + [dbo].[Send] GO CREATE OR ALTER PROCEDURE [dbo].[Send_Create]