Skip to content

Commit 26f06cc

Browse files
committed
correct table reference to inventoryitems when updating sni values
1 parent 2407107 commit 26f06cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Migration-Scripts/IISU Sni Flag 2.5 upgrade script.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,28 @@ BEGIN TRY
3737
-- perform batch processing on certstoreinventoryitems to alter their EntryParameters to change the SNiFlag value to be a simple character instead of lots of text
3838
-- replace 0 - No SNI
3939
UPDATE inventoryitems
40-
SET inventoryitems.[EntryParameters] = REPLACE(inventory.[EntryParameters], '0 - No SNI', '0')
40+
SET inventoryitems.[EntryParameters] = REPLACE(inventoryitems.[EntryParameters], '0 - No SNI', '0')
4141
FROM [cms_agents].[CertStoreInventoryItems] AS inventoryitems
4242
INNER JOIN #InventoryItems ON inventoryitems.[Id] = #InventoryItems.[Id]
4343
WHERE inventoryitems.[EntryParameters] LIKE '%0 - No SNI%'
4444

4545
-- replace 1 - SNI Enabled
4646
UPDATE inventoryitems
47-
SET inventoryitems.[EntryParameters] = REPLACE(inventory.[EntryParameters], '1 - SNI Enabled', '1')
47+
SET inventoryitems.[EntryParameters] = REPLACE(inventoryitems.[EntryParameters], '1 - SNI Enabled', '1')
4848
FROM [cms_agents].[CertStoreInventoryItems] AS inventoryitems
4949
INNER JOIN #InventoryItems ON inventoryitems.[Id] = #InventoryItems.[Id]
5050
WHERE inventoryitems.[EntryParameters] LIKE '%1 - SNI Enabled%'
5151

5252
-- replace 2 - Non SNI Binding
5353
UPDATE inventoryitems
54-
SET inventoryitems.[EntryParameters] = REPLACE(inventory.[EntryParameters], '2 - Non SNI Binding', '2')
54+
SET inventoryitems.[EntryParameters] = REPLACE(inventoryitems.[EntryParameters], '2 - Non SNI Binding', '2')
5555
FROM [cms_agents].[CertStoreInventoryItems] AS inventoryitems
5656
INNER JOIN #InventoryItems ON inventoryitems.[Id] = #InventoryItems.[Id]
5757
WHERE inventoryitems.[EntryParameters] LIKE '%2 - Non SNI Binding%'
5858

5959
-- replace 3 - SNI Binding
6060
UPDATE inventoryitems
61-
SET inventoryitems.[EntryParameters] = REPLACE(inventory.[EntryParameters], '3 - SNI Binding', '3')
61+
SET inventoryitems.[EntryParameters] = REPLACE(inventoryitems.[EntryParameters], '3 - SNI Binding', '3')
6262
FROM [cms_agents].[CertStoreInventoryItems] AS inventoryitems
6363
INNER JOIN #InventoryItems ON inventoryitems.[Id] = #InventoryItems.[Id]
6464
WHERE inventoryitems.[EntryParameters] LIKE '%3 - SNI Binding%'

0 commit comments

Comments
 (0)