From 6b629feb030e01966189ca1b5339ab85fa5e690c Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Tue, 9 Nov 2021 12:33:18 -0500 Subject: [PATCH] [bug] Drop unused db column UsesCryptoAgent (#1704) --- .../2021-11-09_00_DropUsesCryptoAgent.sql | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 util/Migrator/DbScripts/2021-11-09_00_DropUsesCryptoAgent.sql diff --git a/util/Migrator/DbScripts/2021-11-09_00_DropUsesCryptoAgent.sql b/util/Migrator/DbScripts/2021-11-09_00_DropUsesCryptoAgent.sql new file mode 100644 index 0000000000..0fd47644b2 --- /dev/null +++ b/util/Migrator/DbScripts/2021-11-09_00_DropUsesCryptoAgent.sql @@ -0,0 +1,22 @@ +IF COL_LENGTH('[dbo].[User]', 'UsesCryptoAgent') IS NOT NULL + BEGIN + ALTER TABLE + [dbo].[User] + DROP COLUMN + [UsesCryptoAgent] + END +GO + +IF EXISTS(SELECT * FROM sys.views WHERE [Name] = 'UserView') + BEGIN + DROP VIEW [dbo].[UserView] + END +GO + +CREATE VIEW [dbo].[UserView] +AS +SELECT + * +FROM + [dbo].[User] +GO \ No newline at end of file