From f320c8a865d84a8881ec3cd1b8b0c7d9669934ff Mon Sep 17 00:00:00 2001 From: Chris Glavan Date: Wed, 18 Oct 2023 09:06:08 -0400 Subject: [PATCH] ~Fixed ALTER TABLE statement that adds the ApplicablePlant column to the Formats table so that it checks if the column exists --- PROMS/VEPROMS User Interface/PROMSFixes.Sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/PROMSFixes.Sql b/PROMS/VEPROMS User Interface/PROMSFixes.Sql index fddfb39c..58b265fa 100644 --- a/PROMS/VEPROMS User Interface/PROMSFixes.Sql +++ b/PROMS/VEPROMS User Interface/PROMSFixes.Sql @@ -21942,7 +21942,11 @@ GO */ /****** Add the ApplicablePlant field to the Formats table ******/ -ALTER TABLE Formats ADD ApplicablePlant int NULL; +/****** Add the ApplicablePlant field to the Formats table ******/ +IF COL_LENGTH('Formats', 'ApplicablePlant') IS NULL +BEGIN + ALTER TABLE Formats ADD ApplicablePlant int NULL; +END GO /****** Update the Formats table with the appropriate ApplicablePlant value ******/