From 04cd4cded4b9a6c204910e6ad5f34e0b040277e2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 8 Nov 2017 21:11:05 -0500 Subject: [PATCH] rebuild org view --- .../2017-11-06_00_FamilyPlanAdjustments.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/util/Setup/DbScripts/2017-11-06_00_FamilyPlanAdjustments.sql b/util/Setup/DbScripts/2017-11-06_00_FamilyPlanAdjustments.sql index 595d662f0d..c22c409777 100644 --- a/util/Setup/DbScripts/2017-11-06_00_FamilyPlanAdjustments.sql +++ b/util/Setup/DbScripts/2017-11-06_00_FamilyPlanAdjustments.sql @@ -234,3 +234,17 @@ FROM INNER JOIN [dbo].[Organization] O ON O.[Id] = OU.[OrganizationId] GO + +IF EXISTS(SELECT * FROM sys.views WHERE [Name] = 'OrganizationView') +BEGIN + DROP VIEW [dbo].[OrganizationView] +END +GO + +CREATE VIEW [dbo].[OrganizationView] +AS +SELECT + * +FROM + [dbo].[Organization] +GO