-- ----------------------------
-- ItemMatchbox_DZE was removed because it was identical to ItemMatchbox, use dayz_matchboxCount config variable for match stick count
-- ----------------------------
UPDATE `Traders_DATA` SET `item` = '["ItemMatchbox",1]' WHERE `item` = '["ItemMatchbox_DZE",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemMatchbox_DZE', 'ItemMatchbox') WHERE INSTR(Backpack, 'ItemMatchbox_DZE') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemMatchbox_DZE', 'ItemMatchbox') WHERE INSTR(Inventory, 'ItemMatchbox_DZE') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemMatchbox_DZE', 'ItemMatchbox') WHERE INSTR(Inventory, 'ItemMatchbox_DZE') > 0;

-- ----------------------------
-- ItemHatchet_DZE was removed because it was identical to ItemHatchet
-- ----------------------------
UPDATE `Traders_DATA` SET `item` = '["ItemHatchet",1]' WHERE `item` = '["ItemHatchet_DZE",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemHatchet_DZE', 'ItemHatchet') WHERE INSTR(Backpack, 'ItemHatchet_DZE') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemHatchet_DZE', 'ItemHatchet') WHERE INSTR(Inventory, 'ItemHatchet_DZE') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemHatchet_DZE', 'ItemHatchet') WHERE INSTR(Inventory, 'ItemHatchet_DZE') > 0;

-- ----------------------------
-- ItemTentOld and ItemTentDomed2 were removed because they were identical to ItemTent and ItemDomeTent
-- ----------------------------
UPDATE `Traders_DATA` SET `item` = '["ItemTent",1]' WHERE `item` = '["ItemTentOld",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemTentOld', 'ItemTent') WHERE INSTR(Backpack, 'ItemTentOld') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemTentOld', 'ItemTent') WHERE INSTR(Inventory, 'ItemTentOld') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemTentOld', 'ItemTent') WHERE INSTR(Inventory, 'ItemTentOld') > 0;

UPDATE `Traders_DATA` SET `item` = '["ItemDomeTent",1]' WHERE `item` = '["ItemTentDomed2",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemTentDomed2', 'ItemDomeTent') WHERE INSTR(Backpack, 'ItemTentDomed2') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemTentDomed2', 'ItemDomeTent') WHERE INSTR(Inventory, 'ItemTentDomed2') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemTentDomed2', 'ItemDomeTent') WHERE INSTR(Inventory, 'ItemTentDomed2') > 0;

-- ----------------------------
-- ItemTentDomed was renamed to ItemDesertTent and made upgradeable
-- ----------------------------
UPDATE `Traders_DATA` SET `item` = '["ItemDesertTent",1]' WHERE `item` = '["ItemTentDomed",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemTentDomed', 'ItemDesertTent') WHERE INSTR(Backpack, 'ItemTentDomed') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemTentDomed', 'ItemDesertTent') WHERE INSTR(Inventory, 'ItemTentDomed') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemTentDomed', 'ItemDesertTent') WHERE INSTR(Inventory, 'ItemTentDomed') > 0;

-- ----------------------------
-- Updated fish names from 1.8.7
-- ----------------------------
UPDATE `Traders_DATA` SET `item` = '["FishRawTrout",1]' WHERE `item` = '["ItemTrout",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemTrout', 'FishRawTrout') WHERE INSTR(Backpack, 'ItemTrout') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemTrout', 'FishRawTrout') WHERE INSTR(Inventory, 'ItemTrout') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemTrout', 'FishRawTrout') WHERE INSTR(Inventory, 'ItemTrout') > 0;

UPDATE `Traders_DATA` SET `item` = '["FishRawSeaBass",1]' WHERE `item` = '["ItemSeaBass",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemSeaBass', 'FishRawSeaBass') WHERE INSTR(Backpack, 'ItemSeaBass') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemSeaBass', 'FishRawSeaBass') WHERE INSTR(Inventory, 'ItemSeaBass') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemSeaBass', 'FishRawSeaBass') WHERE INSTR(Inventory, 'ItemSeaBass') > 0;

UPDATE `Traders_DATA` SET `item` = '["FishRawTuna",1]' WHERE `item` = '["ItemTuna",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemTuna', 'FishRawTuna') WHERE INSTR(Backpack, 'ItemTuna') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemTuna', 'FishRawTuna') WHERE INSTR(Inventory, 'ItemTuna') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemTuna', 'FishRawTuna') WHERE INSTR(Inventory, 'ItemTuna') > 0;

UPDATE `Traders_DATA` SET `item` = '["FishCookedTrout",1]' WHERE `item` = '["ItemTroutCooked",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemTroutCooked', 'FishCookedTrout') WHERE INSTR(Backpack, 'ItemTroutCooked') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemTroutCooked', 'FishCookedTrout') WHERE INSTR(Inventory, 'ItemTroutCooked') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemTroutCooked', 'FishCookedTrout') WHERE INSTR(Inventory, 'ItemTroutCooked') > 0;

UPDATE `Traders_DATA` SET `item` = '["FishCookedSeaBass",1]' WHERE `item` = '["ItemSeaBassCooked",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemSeaBassCooked', 'FishCookedSeaBass') WHERE INSTR(Backpack, 'ItemSeaBassCooked') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemSeaBassCooked', 'FishCookedSeaBass') WHERE INSTR(Inventory, 'ItemSeaBassCooked') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemSeaBassCooked', 'FishCookedSeaBass') WHERE INSTR(Inventory, 'ItemSeaBassCooked') > 0;

UPDATE `Traders_DATA` SET `item` = '["FishCookedTuna",1]' WHERE `item` = '["ItemTunaCooked",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemTunaCooked', 'FishCookedTuna') WHERE INSTR(Backpack, 'ItemTunaCooked') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemTunaCooked', 'FishCookedTuna') WHERE INSTR(Inventory, 'ItemTunaCooked') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemTunaCooked', 'FishCookedTuna') WHERE INSTR(Inventory, 'ItemTunaCooked') > 0;

-- ----------------------------
-- Updated shotgun ammo names from 1.8.7
-- ----------------------------
UPDATE `Traders_DATA` SET `item` = '["2Rnd_12Gauge_Slug",1]' WHERE `item` = '["2Rnd_shotgun_74slug",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, '2Rnd_shotgun_74slug', '2Rnd_12Gauge_Slug') WHERE INSTR(Backpack, '2Rnd_shotgun_74slug') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, '2Rnd_shotgun_74slug', '2Rnd_12Gauge_Slug') WHERE INSTR(Inventory, '2Rnd_shotgun_74slug') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, '2Rnd_shotgun_74slug', '2Rnd_12Gauge_Slug') WHERE INSTR(Inventory, '2Rnd_shotgun_74slug') > 0;

UPDATE `Traders_DATA` SET `item` = '["2Rnd_12Gauge_Buck",1]' WHERE `item` = '["2Rnd_shotgun_74Pellets",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, '2Rnd_shotgun_74Pellets', '2Rnd_12Gauge_Buck') WHERE INSTR(Backpack, '2Rnd_shotgun_74Pellets') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, '2Rnd_shotgun_74Pellets', '2Rnd_12Gauge_Buck') WHERE INSTR(Inventory, '2Rnd_shotgun_74Pellets') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, '2Rnd_shotgun_74Pellets', '2Rnd_12Gauge_Buck') WHERE INSTR(Inventory, '2Rnd_shotgun_74Pellets') > 0;

UPDATE `Traders_DATA` SET `item` = '["8Rnd_12Gauge_Slug",1]' WHERE `item` = '["8Rnd_B_Beneli_74Slug",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, '8Rnd_B_Beneli_74Slug', '8Rnd_12Gauge_Slug') WHERE INSTR(Backpack, '8Rnd_B_Beneli_74Slug') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, '8Rnd_B_Beneli_74Slug', '8Rnd_12Gauge_Slug') WHERE INSTR(Inventory, '8Rnd_B_Beneli_74Slug') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, '8Rnd_B_Beneli_74Slug', '8Rnd_12Gauge_Slug') WHERE INSTR(Inventory, '8Rnd_B_Beneli_74Slug') > 0;

UPDATE `Traders_DATA` SET `item` = '["8Rnd_12Gauge_Buck",1]' WHERE `item` = '["8Rnd_B_Beneli_Pellets",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, '8Rnd_B_Beneli_Pellets', '8Rnd_12Gauge_Buck') WHERE INSTR(Backpack, '8Rnd_B_Beneli_Pellets') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, '8Rnd_B_Beneli_Pellets', '8Rnd_12Gauge_Buck') WHERE INSTR(Inventory, '8Rnd_B_Beneli_Pellets') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, '8Rnd_B_Beneli_Pellets', '8Rnd_12Gauge_Buck') WHERE INSTR(Inventory, '8Rnd_B_Beneli_Pellets') > 0;

-- ----------------------------
-- Updated arrow and quiver names from 1.8.7
-- ----------------------------
UPDATE `Traders_DATA` SET `item` = '["1Rnd_Arrow_Wood",1]' WHERE `item` = '["WoodenArrow",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'WoodenArrow', '1Rnd_Arrow_Wood') WHERE INSTR(Backpack, 'WoodenArrow') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'WoodenArrow', '1Rnd_Arrow_Wood') WHERE INSTR(Inventory, 'WoodenArrow') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'WoodenArrow', '1Rnd_Arrow_Wood') WHERE INSTR(Inventory, 'WoodenArrow') > 0;

UPDATE `Traders_DATA` SET `item` = '["12Rnd_Quiver_Wood",1]' WHERE `item` = '["Quiver",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'Quiver', '12Rnd_Quiver_Wood') WHERE INSTR(Backpack, 'Quiver') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'Quiver', '12Rnd_Quiver_Wood') WHERE INSTR(Inventory, 'Quiver') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'Quiver', '12Rnd_Quiver_Wood') WHERE INSTR(Inventory, 'Quiver') > 0;

-- ----------------------------
-- Updated CZ550 and Lee-Enfield ammo names from 1.8.7
-- ----------------------------
UPDATE `Traders_DATA` SET `item` = '["5Rnd_17HMR",1]' WHERE `item` = '["5x_22_LR_17_HMR",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, '5x_22_LR_17_HMR', '5Rnd_17HMR') WHERE INSTR(Backpack, '5x_22_LR_17_HMR') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, '5x_22_LR_17_HMR', '5Rnd_17HMR') WHERE INSTR(Inventory, '5x_22_LR_17_HMR') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, '5x_22_LR_17_HMR', '5Rnd_17HMR') WHERE INSTR(Inventory, '5x_22_LR_17_HMR') > 0;

UPDATE `Traders_DATA` SET `item` = '["10Rnd_303British",1]' WHERE `item` = '["10x_303",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, '10x_303', '10Rnd_303British') WHERE INSTR(Backpack, '10x_303') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, '10x_303', '10Rnd_303British') WHERE INSTR(Inventory, '10x_303') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, '10x_303', '10Rnd_303British') WHERE INSTR(Inventory, '10x_303') > 0;

-- ----------------------------
-- ----------------------------
-- ----------------------------
-- ----------------------------
-- Updated weapon names with attachment support from 1.8.7
-- ----------------------------
-- ----------------------------
-- ----------------------------
-- ----------------------------

UPDATE `Traders_DATA` SET `item` = '["AK74_DZ",1]' WHERE `item` = '["AK_74",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'AK_74', 'AK74_DZ') WHERE INSTR(Backpack, 'AK_74') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'AK_74', 'AK74_DZ') WHERE INSTR(Inventory, 'AK_74') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'AK_74', 'AK74_DZ') WHERE INSTR(Inventory, 'AK_74') > 0;

UPDATE `Traders_DATA` SET `item` = '["AKM_DZ",1]' WHERE `item` = '["AK_47_M",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'AK_47_M', 'AKM_DZ') WHERE INSTR(Backpack, 'AK_47_M') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'AK_47_M', 'AKM_DZ') WHERE INSTR(Inventory, 'AK_47_M') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'AK_47_M', 'AKM_DZ') WHERE INSTR(Inventory, 'AK_47_M') > 0;

UPDATE `Traders_DATA` SET `item` = '["AKS74U_DZ",1]' WHERE `item` = '["AKS_74_U",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'AKS_74_U', 'AKS74U_DZ') WHERE INSTR(Backpack, 'AKS_74_U') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'AKS_74_U', 'AKS74U_DZ') WHERE INSTR(Inventory, 'AKS_74_U') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'AKS_74_U', 'AKS74U_DZ') WHERE INSTR(Inventory, 'AKS_74_U') > 0;

UPDATE `Traders_DATA` SET `item` = '["AK74_Kobra_DZ",1]' WHERE `item` = '["AKS_74_kobra",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'AKS_74_kobra', 'AK74_Kobra_DZ') WHERE INSTR(Backpack, 'AKS_74_kobra') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'AKS_74_kobra', 'AK74_Kobra_DZ') WHERE INSTR(Inventory, 'AKS_74_kobra') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'AKS_74_kobra', 'AK74_Kobra_DZ') WHERE INSTR(Inventory, 'AKS_74_kobra') > 0;

UPDATE `Traders_DATA` SET `item` = '["Bizon_DZ",1]' WHERE `item` = '["bizon",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'bizon', 'Bizon_DZ') WHERE INSTR(Backpack, 'bizon') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'bizon', 'Bizon_DZ') WHERE INSTR(Inventory, 'bizon') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'bizon', 'Bizon_DZ') WHERE INSTR(Inventory, 'bizon') > 0;

UPDATE `Traders_DATA` SET `item` = '["Bizon_SD_DZ",1]' WHERE `item` = '["bizon_silenced",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'bizon_silenced', 'Bizon_SD_DZ') WHERE INSTR(Backpack, 'bizon_silenced') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'bizon_silenced', 'Bizon_SD_DZ') WHERE INSTR(Inventory, 'bizon_silenced') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'bizon_silenced', 'Bizon_SD_DZ') WHERE INSTR(Inventory, 'bizon_silenced') > 0;

UPDATE `Traders_DATA` SET `item` = '["CZ550_DZ",1]' WHERE `item` = '["huntingrifle",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'huntingrifle', 'CZ550_DZ') WHERE INSTR(Backpack, 'huntingrifle') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'huntingrifle', 'CZ550_DZ') WHERE INSTR(Inventory, 'huntingrifle') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'huntingrifle', 'CZ550_DZ') WHERE INSTR(Inventory, 'huntingrifle') > 0;

UPDATE `Traders_DATA` SET `item` = '["DMR_DZ",1]' WHERE `item` = '["DMR",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'DMR', 'DMR_DZ') WHERE INSTR(Backpack, 'DMR') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'DMR', 'DMR_DZ') WHERE INSTR(Inventory, 'DMR') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'DMR', 'DMR_DZ') WHERE INSTR(Inventory, 'DMR') > 0;

UPDATE `Traders_DATA` SET `item` = '["FN_FAL_ANPVS4_DZE",1]' WHERE `item` = '["FN_FAL_ANPVS4",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'FN_FAL_ANPVS4', 'FN_FAL_ANPVS4_DZE') WHERE INSTR(Backpack, 'FN_FAL_ANPVS4') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'FN_FAL_ANPVS4', 'FN_FAL_ANPVS4_DZE') WHERE INSTR(Inventory, 'FN_FAL_ANPVS4') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'FN_FAL_ANPVS4', 'FN_FAL_ANPVS4_DZE') WHERE INSTR(Inventory, 'FN_FAL_ANPVS4') > 0;

UPDATE `Traders_DATA` SET `item` = '["FNFAL_DZ",1]' WHERE `item` = '["FN_FAL",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'FN_FAL', 'FNFAL_DZ') WHERE INSTR(Backpack, 'FN_FAL') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'FN_FAL', 'FNFAL_DZ') WHERE INSTR(Inventory, 'FN_FAL') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'FN_FAL', 'FNFAL_DZ') WHERE INSTR(Inventory, 'FN_FAL') > 0;

UPDATE `Traders_DATA` SET `item` = '["G17_FL_DZ",1]' WHERE `item` = '["glock17_EP1",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'glock17_EP1', 'G17_FL_DZ') WHERE INSTR(Backpack, 'glock17_EP1') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'glock17_EP1', 'G17_FL_DZ') WHERE INSTR(Inventory, 'glock17_EP1') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'glock17_EP1', 'G17_FL_DZ') WHERE INSTR(Inventory, 'glock17_EP1') > 0;

UPDATE `Traders_DATA` SET `item` = '["G36A_Camo_DZ",1]' WHERE `item` = '["G36A_camo",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'G36A_camo', 'G36A_Camo_DZ') WHERE INSTR(Backpack, 'G36A_camo') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'G36A_camo', 'G36A_Camo_DZ') WHERE INSTR(Inventory, 'G36A_camo') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'G36A_camo', 'G36A_Camo_DZ') WHERE INSTR(Inventory, 'G36A_camo') > 0;

UPDATE `Traders_DATA` SET `item` = '["G36C_DZ",1]' WHERE `item` = '["G36C",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'G36C', 'G36C_DZ') WHERE INSTR(Backpack, 'G36C') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'G36C', 'G36C_DZ') WHERE INSTR(Inventory, 'G36C') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'G36C', 'G36C_DZ') WHERE INSTR(Inventory, 'G36C') > 0;

UPDATE `Traders_DATA` SET `item` = '["G36K_Camo_DZ",1]' WHERE `item` = '["G36K_camo",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'G36K_camo', 'G36K_Camo_DZ') WHERE INSTR(Backpack, 'G36K_camo') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'G36K_camo', 'G36K_Camo_DZ') WHERE INSTR(Inventory, 'G36K_camo') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'G36K_camo', 'G36K_Camo_DZ') WHERE INSTR(Inventory, 'G36K_camo') > 0;

UPDATE `Traders_DATA` SET `item` = '["L110A1_CCO_DZ",1]' WHERE `item` = '["BAF_L110A1_Aim_DZE",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'BAF_L110A1_Aim_DZE', 'L110A1_CCO_DZ') WHERE INSTR(Backpack, 'BAF_L110A1_Aim_DZE') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'BAF_L110A1_Aim_DZE', 'L110A1_CCO_DZ') WHERE INSTR(Inventory, 'BAF_L110A1_Aim_DZE') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'BAF_L110A1_Aim_DZE', 'L110A1_CCO_DZ') WHERE INSTR(Inventory, 'BAF_L110A1_Aim_DZE') > 0;

UPDATE `Traders_DATA` SET `item` = '["L85_Holo_DZ",1]' WHERE `item` = '["BAF_L85A2_RIS_Holo",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'BAF_L85A2_RIS_Holo', 'L85_Holo_DZ') WHERE INSTR(Backpack, 'BAF_L85A2_RIS_Holo') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'BAF_L85A2_RIS_Holo', 'L85_Holo_DZ') WHERE INSTR(Inventory, 'BAF_L85A2_RIS_Holo') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'BAF_L85A2_RIS_Holo', 'L85_Holo_DZ') WHERE INSTR(Inventory, 'BAF_L85A2_RIS_Holo') > 0;

UPDATE `Traders_DATA` SET `item` = '["LeeEnfield_DZ",1]' WHERE `item` = '["LeeEnfield",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'LeeEnfield', 'LeeEnfield_DZ') WHERE INSTR(Backpack, 'LeeEnfield') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'LeeEnfield', 'LeeEnfield_DZ') WHERE INSTR(Inventory, 'LeeEnfield') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'LeeEnfield', 'LeeEnfield_DZ') WHERE INSTR(Inventory, 'LeeEnfield') > 0;

UPDATE `Traders_DATA` SET `item` = '["M1014_DZ",1]' WHERE `item` = '["M1014",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M1014', 'M1014_DZ') WHERE INSTR(Backpack, 'M1014') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M1014', 'M1014_DZ') WHERE INSTR(Inventory, 'M1014') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M1014', 'M1014_DZ') WHERE INSTR(Inventory, 'M1014') > 0;

UPDATE `Traders_DATA` SET `item` = '["M14_CCO_DZ",1]' WHERE `item` = '["M14_EP1",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M14_EP1', 'M14_CCO_DZ') WHERE INSTR(Backpack, 'M14_EP1') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M14_EP1', 'M14_CCO_DZ') WHERE INSTR(Inventory, 'M14_EP1') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M14_EP1', 'M14_CCO_DZ') WHERE INSTR(Inventory, 'M14_EP1') > 0;

UPDATE `Traders_DATA` SET `item` = '["M16A2_DZ",1]' WHERE `item` = '["M16A2",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M16A2', 'M16A2_DZ') WHERE INSTR(Backpack, 'M16A2') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M16A2', 'M16A2_DZ') WHERE INSTR(Inventory, 'M16A2') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M16A2', 'M16A2_DZ') WHERE INSTR(Inventory, 'M16A2') > 0;

UPDATE `Traders_DATA` SET `item` = '["M16A2_GL_DZ",1]' WHERE `item` = '["M16A2GL",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M16A2GL', 'M16A2_GL_DZ') WHERE INSTR(Backpack, 'M16A2GL') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M16A2GL', 'M16A2_GL_DZ') WHERE INSTR(Inventory, 'M16A2GL') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M16A2GL', 'M16A2_GL_DZ') WHERE INSTR(Inventory, 'M16A2GL') > 0;

UPDATE `Traders_DATA` SET `item` = '["M16A4_ACOG_DZ",1]' WHERE `item` = '["M16A4_ACG",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M16A4_ACG', 'M16A4_ACOG_DZ') WHERE INSTR(Backpack, 'M16A4_ACG') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M16A4_ACG', 'M16A4_ACOG_DZ') WHERE INSTR(Inventory, 'M16A4_ACG') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M16A4_ACG', 'M16A4_ACOG_DZ') WHERE INSTR(Inventory, 'M16A4_ACG') > 0;

UPDATE `Traders_DATA` SET `item` = '["M1911_DZ",1]' WHERE `item` = '["Colt1911",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'Colt1911', 'M1911_DZ') WHERE INSTR(Backpack, 'Colt1911') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'Colt1911', 'M1911_DZ') WHERE INSTR(Inventory, 'Colt1911') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'Colt1911', 'M1911_DZ') WHERE INSTR(Inventory, 'Colt1911') > 0;

UPDATE `Traders_DATA` SET `item` = '["M24_DZ",1]' WHERE `item` = '["M24",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M24', 'M24_DZ') WHERE INSTR(Backpack, 'M24') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M24', 'M24_DZ') WHERE INSTR(Inventory, 'M24') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M24', 'M24_DZ') WHERE INSTR(Inventory, 'M24') > 0;

UPDATE `Traders_DATA` SET `item` = '["M249_DZ",1]' WHERE `item` = '["M249_EP1_DZ",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M249_EP1_DZ', 'M249_DZ') WHERE INSTR(Backpack, 'M249_EP1_DZ') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M249_EP1_DZ', 'M249_DZ') WHERE INSTR(Inventory, 'M249_EP1_DZ') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M249_EP1_DZ', 'M249_DZ') WHERE INSTR(Inventory, 'M249_EP1_DZ') > 0;

UPDATE `Traders_DATA` SET `item` = '["M40A3_Gh_DZ",1]' WHERE `item` = '["M40A3",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M40A3', 'M40A3_Gh_DZ') WHERE INSTR(Backpack, 'M40A3') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M40A3', 'M40A3_Gh_DZ') WHERE INSTR(Inventory, 'M40A3') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M40A3', 'M40A3_Gh_DZ') WHERE INSTR(Inventory, 'M40A3') > 0;

UPDATE `Traders_DATA` SET `item` = '["M4A1_CCO_DZ",1]' WHERE `item` = '["M4A1_Aim",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M4A1_Aim', 'M4A1_CCO_DZ') WHERE INSTR(Backpack, 'M4A1_Aim') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M4A1_Aim', 'M4A1_CCO_DZ') WHERE INSTR(Inventory, 'M4A1_Aim') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M4A1_Aim', 'M4A1_CCO_DZ') WHERE INSTR(Inventory, 'M4A1_Aim') > 0;

UPDATE `Traders_DATA` SET `item` = '["M4A1_DZ",1]' WHERE `item` = '["M4A1",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M4A1', 'M4A1_DZ') WHERE INSTR(Backpack, 'M4A1') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M4A1', 'M4A1_DZ') WHERE INSTR(Inventory, 'M4A1') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M4A1', 'M4A1_DZ') WHERE INSTR(Inventory, 'M4A1') > 0;

UPDATE `Traders_DATA` SET `item` = '["M9_DZ",1]' WHERE `item` = '["M9",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M9', 'M9_DZ') WHERE INSTR(Backpack, 'M9') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M9', 'M9_DZ') WHERE INSTR(Inventory, 'M9') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M9', 'M9_DZ') WHERE INSTR(Inventory, 'M9') > 0;

UPDATE `Traders_DATA` SET `item` = '["M9_SD_DZ",1]' WHERE `item` = '["M9SD",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'M9SD', 'M9_SD_DZ') WHERE INSTR(Backpack, 'M9SD') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'M9SD', 'M9_SD_DZ') WHERE INSTR(Inventory, 'M9SD') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'M9SD', 'M9_SD_DZ') WHERE INSTR(Inventory, 'M9SD') > 0;

UPDATE `Traders_DATA` SET `item` = '["Makarov_DZ",1]' WHERE `item` = '["Makarov",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'Makarov', 'Makarov_DZ') WHERE INSTR(Backpack, 'Makarov') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'Makarov', 'Makarov_DZ') WHERE INSTR(Inventory, 'Makarov') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'Makarov', 'Makarov_DZ') WHERE INSTR(Inventory, 'Makarov') > 0;

UPDATE `Traders_DATA` SET `item` = '["Makarov_SD_DZ",1]' WHERE `item` = '["MakarovSD",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'MakarovSD', 'Makarov_SD_DZ') WHERE INSTR(Backpack, 'MakarovSD') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'MakarovSD', 'Makarov_SD_DZ') WHERE INSTR(Inventory, 'MakarovSD') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'MakarovSD', 'Makarov_SD_DZ') WHERE INSTR(Inventory, 'MakarovSD') > 0;

UPDATE `Traders_DATA` SET `item` = '["Mk48_CCO_DZ",1]' WHERE `item` = '["Mk_48_DZ",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'Mk_48_DZ', 'Mk48_CCO_DZ') WHERE INSTR(Backpack, 'Mk_48_DZ') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'Mk_48_DZ', 'Mk48_CCO_DZ') WHERE INSTR(Inventory, 'Mk_48_DZ') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'Mk_48_DZ', 'Mk48_CCO_DZ') WHERE INSTR(Inventory, 'Mk_48_DZ') > 0;

UPDATE `Traders_DATA` SET `item` = '["MP5_DZ",1]' WHERE `item` = '["MP5A5",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'MP5A5', 'MP5_DZ') WHERE INSTR(Backpack, 'MP5A5') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'MP5A5', 'MP5_DZ') WHERE INSTR(Inventory, 'MP5A5') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'MP5A5', 'MP5_DZ') WHERE INSTR(Inventory, 'MP5A5') > 0;

UPDATE `Traders_DATA` SET `item` = '["MP5_SD_DZ",1]' WHERE `item` = '["MP5SD",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'MP5SD', 'MP5_SD_DZ') WHERE INSTR(Backpack, 'MP5SD') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'MP5SD', 'MP5_SD_DZ') WHERE INSTR(Inventory, 'MP5SD') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'MP5SD', 'MP5_SD_DZ') WHERE INSTR(Inventory, 'MP5SD') > 0;

UPDATE `Traders_DATA` SET `item` = '["MR43_DZ",1]' WHERE `item` = '["MR43",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'MR43', 'MR43_DZ') WHERE INSTR(Backpack, 'MR43') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'MR43', 'MR43_DZ') WHERE INSTR(Inventory, 'MR43') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'MR43', 'MR43_DZ') WHERE INSTR(Inventory, 'MR43') > 0;

UPDATE `Traders_DATA` SET `item` = '["PDW_DZ",1]' WHERE `item` = '["UZI_EP1",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'UZI_EP1', 'PDW_DZ') WHERE INSTR(Backpack, 'UZI_EP1') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'UZI_EP1', 'PDW_DZ') WHERE INSTR(Inventory, 'UZI_EP1') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'UZI_EP1', 'PDW_DZ') WHERE INSTR(Inventory, 'UZI_EP1') > 0;

UPDATE `Traders_DATA` SET `item` = '["PKM_DZ",1]' WHERE `item` = '["PK_DZ",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'PK_DZ', 'PKM_DZ') WHERE INSTR(Backpack, 'PK_DZ') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'PK_DZ', 'PKM_DZ') WHERE INSTR(Inventory, 'PK_DZ') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'PK_DZ', 'PKM_DZ') WHERE INSTR(Inventory, 'PK_DZ') > 0;

UPDATE `Traders_DATA` SET `item` = '["Remington870_FL_DZ",1]' WHERE `item` = '["Remington870_lamp",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'Remington870_lamp', 'Remington870_FL_DZ') WHERE INSTR(Backpack, 'Remington870_lamp') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'Remington870_lamp', 'Remington870_FL_DZ') WHERE INSTR(Inventory, 'Remington870_lamp') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'Remington870_lamp', 'Remington870_FL_DZ') WHERE INSTR(Inventory, 'Remington870_lamp') > 0;

UPDATE `Traders_DATA` SET `item` = '["Revolver_DZ",1]' WHERE `item` = '["revolver_EP1",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'revolver_EP1', 'Revolver_DZ') WHERE INSTR(Backpack, 'revolver_EP1') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'revolver_EP1', 'Revolver_DZ') WHERE INSTR(Inventory, 'revolver_EP1') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'revolver_EP1', 'Revolver_DZ') WHERE INSTR(Inventory, 'revolver_EP1') > 0;

UPDATE `Traders_DATA` SET `item` = '["RPK74_DZ",1]' WHERE `item` = '["RPK_74",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'RPK_74', 'RPK74_DZ') WHERE INSTR(Backpack, 'RPK_74') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'RPK_74', 'RPK74_DZ') WHERE INSTR(Inventory, 'RPK_74') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'RPK_74', 'RPK74_DZ') WHERE INSTR(Inventory, 'RPK_74') > 0;

UPDATE `Traders_DATA` SET `item` = '["SA58_DZ",1]' WHERE `item` = '["Sa58P_EP1",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'Sa58P_EP1', 'SA58_DZ') WHERE INSTR(Backpack, 'Sa58P_EP1') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'Sa58P_EP1', 'SA58_DZ') WHERE INSTR(Inventory, 'Sa58P_EP1') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'Sa58P_EP1', 'SA58_DZ') WHERE INSTR(Inventory, 'Sa58P_EP1') > 0;

UPDATE `Traders_DATA` SET `item` = '["SA58_DZ",1]' WHERE `item` = '["Sa58V_EP1",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'Sa58V_EP1', 'SA58_DZ') WHERE INSTR(Backpack, 'Sa58V_EP1') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'Sa58V_EP1', 'SA58_DZ') WHERE INSTR(Inventory, 'Sa58V_EP1') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'Sa58V_EP1', 'SA58_DZ') WHERE INSTR(Inventory, 'Sa58V_EP1') > 0;

UPDATE `Traders_DATA` SET `item` = '["SVD_DZ",1]' WHERE `item` = '["SVD",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'SVD', 'SVD_DZ') WHERE INSTR(Backpack, 'SVD') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'SVD', 'SVD_DZ') WHERE INSTR(Inventory, 'SVD') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'SVD', 'SVD_DZ') WHERE INSTR(Inventory, 'SVD') > 0;

UPDATE `Traders_DATA` SET `item` = '["SVD_Gh_DZ",1]' WHERE `item` = '["SVD_CAMO",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'SVD_CAMO', 'SVD_Gh_DZ') WHERE INSTR(Backpack, 'SVD_CAMO') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'SVD_CAMO', 'SVD_Gh_DZ') WHERE INSTR(Inventory, 'SVD_CAMO') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'SVD_CAMO', 'SVD_Gh_DZ') WHERE INSTR(Inventory, 'SVD_CAMO') > 0;

UPDATE `Traders_DATA` SET `item` = '["Winchester1866_DZ",1]' WHERE `item` = '["Winchester1866",1]';
UPDATE character_data SET Backpack = REPLACE(Backpack, 'Winchester1866', 'Winchester1866_DZ') WHERE INSTR(Backpack, 'Winchester1866') > 0;
UPDATE character_data SET Inventory = REPLACE(Inventory, 'Winchester1866', 'Winchester1866_DZ') WHERE INSTR(Inventory, 'Winchester1866') > 0;
UPDATE object_data SET Inventory = REPLACE(Inventory, 'Winchester1866', 'Winchester1866_DZ') WHERE INSTR(Inventory, 'Winchester1866') > 0;


-- ----------------------------
-- Run to replace legacy bloodbag with universal type if using DZE_UseBloodTypes = true;
-- ----------------------------
-- UPDATE `Traders_DATA` SET `item` = '["bloodBagONEG",1]' WHERE `item` = '["ItemBloodbag",1]';
-- UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemBloodbag', 'bloodBagONEG') WHERE INSTR(Backpack, 'ItemBloodbag') > 0;
-- UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemBloodbag', 'bloodBagONEG') WHERE INSTR(Inventory, 'ItemBloodbag') > 0;
-- UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemBloodbag', 'bloodBagONEG') WHERE INSTR(Inventory, 'ItemBloodbag') > 0;