From 05ece5dbd553e41bf0f0ea6dfaf515404d187e57 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 28 Oct 2017 21:03:26 -0400 Subject: [PATCH] add columns to org table in db script --- .../DbScripts/2017-10-25_00_OrgUserUpdates.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/util/Setup/DbScripts/2017-10-25_00_OrgUserUpdates.sql b/util/Setup/DbScripts/2017-10-25_00_OrgUserUpdates.sql index ee36150c49..ff3d361f5c 100644 --- a/util/Setup/DbScripts/2017-10-25_00_OrgUserUpdates.sql +++ b/util/Setup/DbScripts/2017-10-25_00_OrgUserUpdates.sql @@ -121,6 +121,19 @@ BEGIN END GO +IF COL_LENGTH('[dbo].[Organization]', 'BusinessAddress1') IS NULL +BEGIN + ALTER TABLE + [dbo].[Organization] + ADD + [BusinessAddress1] NVARCHAR(50) NULL, + [BusinessAddress2] NVARCHAR(50) NULL, + [BusinessAddress3] NVARCHAR(50) NULL, + [BusinessCountry] VARCHAR(2) NULL, + [BusinessTaxNumber] NVARCHAR(30) NULL +END +GO + IF OBJECT_ID('[dbo].[Organization_Create]') IS NOT NULL BEGIN DROP PROCEDURE [dbo].[Organization_Create]