You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Migration-Scripts/IISU Sni Flag 2.5 upgrade script.sql
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,28 +37,28 @@ BEGIN TRY
37
37
-- perform batch processing on certstoreinventoryitems to alter their EntryParameters to change the SNiFlag value to be a simple character instead of lots of text
38
38
-- replace 0 - No SNI
39
39
UPDATE inventoryitems
40
-
SET inventoryitems.[EntryParameters] =REPLACE(inventory.[EntryParameters], '0 - No SNI', '0')
40
+
SET inventoryitems.[EntryParameters] =REPLACE(inventoryitems.[EntryParameters], '0 - No SNI', '0')
41
41
FROM [cms_agents].[CertStoreInventoryItems] AS inventoryitems
42
42
INNER JOIN #InventoryItems ON inventoryitems.[Id] = #InventoryItems.[Id]
43
43
WHERE inventoryitems.[EntryParameters] LIKE'%0 - No SNI%'
44
44
45
45
-- replace 1 - SNI Enabled
46
46
UPDATE inventoryitems
47
-
SET inventoryitems.[EntryParameters] =REPLACE(inventory.[EntryParameters], '1 - SNI Enabled', '1')
47
+
SET inventoryitems.[EntryParameters] =REPLACE(inventoryitems.[EntryParameters], '1 - SNI Enabled', '1')
48
48
FROM [cms_agents].[CertStoreInventoryItems] AS inventoryitems
49
49
INNER JOIN #InventoryItems ON inventoryitems.[Id] = #InventoryItems.[Id]
50
50
WHERE inventoryitems.[EntryParameters] LIKE'%1 - SNI Enabled%'
51
51
52
52
-- replace 2 - Non SNI Binding
53
53
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')
55
55
FROM [cms_agents].[CertStoreInventoryItems] AS inventoryitems
56
56
INNER JOIN #InventoryItems ON inventoryitems.[Id] = #InventoryItems.[Id]
57
57
WHERE inventoryitems.[EntryParameters] LIKE'%2 - Non SNI Binding%'
58
58
59
59
-- replace 3 - SNI Binding
60
60
UPDATE inventoryitems
61
-
SET inventoryitems.[EntryParameters] =REPLACE(inventory.[EntryParameters], '3 - SNI Binding', '3')
61
+
SET inventoryitems.[EntryParameters] =REPLACE(inventoryitems.[EntryParameters], '3 - SNI Binding', '3')
62
62
FROM [cms_agents].[CertStoreInventoryItems] AS inventoryitems
63
63
INNER JOIN #InventoryItems ON inventoryitems.[Id] = #InventoryItems.[Id]
64
64
WHERE inventoryitems.[EntryParameters] LIKE'%3 - SNI Binding%'
0 commit comments