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]