Merge pull request '~Fixed ALTER TABLE statement that adds the ApplicablePlant column to the Formats table so that it checks if the column exists' (#137) from C2023-017 into Development

Merging into Development.  No code review needed.
This commit is contained in:
Chris Glavan 2023-10-18 09:07:25 -04:00
commit 22e70d03ad

View File

@ -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 ******/