From fa2e314c4fe98126996edf6fdae56c83d8f270b3 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Thu, 5 Jun 2025 15:18:02 +0200 Subject: [PATCH] Drop view if exists --- .../DbScripts/2025-06-01_00_AddSignatureKeyPairTable.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/Migrator/DbScripts/2025-06-01_00_AddSignatureKeyPairTable.sql b/util/Migrator/DbScripts/2025-06-01_00_AddSignatureKeyPairTable.sql index 748e0701cc..8cbc0074c3 100644 --- a/util/Migrator/DbScripts/2025-06-01_00_AddSignatureKeyPairTable.sql +++ b/util/Migrator/DbScripts/2025-06-01_00_AddSignatureKeyPairTable.sql @@ -11,6 +11,12 @@ CREATE TABLE [dbo].[UserSignatureKeyPair] ( ); GO +IF EXISTS(SELECT * FROM sys.views WHERE [Name] = 'UserSignatureKeyPairView') +BEGIN + DROP VIEW [dbo].[UserSignatureKeyPairView] +END +GO + CREATE VIEW [dbo].[UserSignatureKeyPairView] AS SELECT