Add Barakah/UpdateFormatList.sql

This commit is contained in:
Devin Jankowski 2023-12-08 14:49:16 -05:00
parent c33b383d3b
commit 978aab4916

View File

@ -0,0 +1,14 @@
/*******************************/
/******** IMPORTANT!!! ********/
/* Update the @active variable with the appropriate number for the
specific plant you are working on BEFORE you run this script. This
must be formatted in a comma-separated list with each value for the
formats that should be made available to the plant. Additionally,
the number 1000 is for all generic and base formats that should be
available to all plants. You can find the value(s) to be entered by
looking at the ApplicablePlant value in update statements below*/
/*******************************/
DECLARE @active varchar(50)
SET @active = '1000,3'
UPDATE Folders SET Config = REPLACE(Config, '</Config>','<Formats Active="' + @active + '" /></Config>')
WHERE FolderID = 1